From 5632450a3522d4370778bfdb49f378fd53a6e49a Mon Sep 17 00:00:00 2001
From: Marek Kubica
Date: Wed, 10 Jun 2026 15:15:48 +0200
Subject: [PATCH 1/7] Initial code sample of `include functor`
Signed-off-by: Marek Kubica
---
test/generators/cases/oxcaml.mli | 6 ++
...aml-Include_functor-Make-argument-1-T.html | 29 ++++++++
.../html/Oxcaml-Include_functor-Make.html | 50 +++++++++++++
.../html/Oxcaml-Include_functor.html | 48 +++++++++++++
test/generators/html/Oxcaml.html | 13 ++++
test/generators/html/oxcaml.targets | 3 +
test/generators/latex/Oxcaml.tex | 5 ++
test/generators/link.dune.inc | 72 ++++++++++++++++++-
test/generators/man/Oxcaml.3o | 3 +-
test/generators/man/Oxcaml.Include_functor.3o | 18 +++++
.../man/Oxcaml.Include_functor.Make.3o | 30 ++++++++
test/generators/man/oxcaml.targets | 2 +
...xcaml-Include_functor-Make-argument-1-T.md | 6 ++
.../markdown/Oxcaml-Include_functor-Make.md | 15 ++++
.../markdown/Oxcaml-Include_functor.md | 12 ++++
test/generators/markdown/Oxcaml.md | 4 ++
test/generators/markdown/oxcaml.targets | 3 +
17 files changed, 315 insertions(+), 4 deletions(-)
create mode 100644 test/generators/html/Oxcaml-Include_functor-Make-argument-1-T.html
create mode 100644 test/generators/html/Oxcaml-Include_functor-Make.html
create mode 100644 test/generators/html/Oxcaml-Include_functor.html
create mode 100644 test/generators/man/Oxcaml.Include_functor.3o
create mode 100644 test/generators/man/Oxcaml.Include_functor.Make.3o
create mode 100644 test/generators/markdown/Oxcaml-Include_functor-Make-argument-1-T.md
create mode 100644 test/generators/markdown/Oxcaml-Include_functor-Make.md
create mode 100644 test/generators/markdown/Oxcaml-Include_functor.md
diff --git a/test/generators/cases/oxcaml.mli b/test/generators/cases/oxcaml.mli
index 11db3f653a..d57e065d51 100644
--- a/test/generators/cases/oxcaml.mli
+++ b/test/generators/cases/oxcaml.mli
@@ -280,3 +280,9 @@ module M3 : sig @@ contended
end
(** [contended] modality applied to all definitions in the module, except the
ones which have already specified this axis. *)
+
+module Include_functor : sig
+ module Make (T : sig type t end) : sig type included end
+ type t
+ include functor module type of Make
+end
diff --git a/test/generators/html/Oxcaml-Include_functor-Make-argument-1-T.html b/test/generators/html/Oxcaml-Include_functor-Make-argument-1-T.html
new file mode 100644
index 0000000000..4d5cabd316
--- /dev/null
+++ b/test/generators/html/Oxcaml-Include_functor-Make-argument-1-T.html
@@ -0,0 +1,29 @@
+
+
+ T (Oxcaml.Include_functor.Make.T)
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/generators/html/Oxcaml-Include_functor-Make.html b/test/generators/html/Oxcaml-Include_functor-Make.html
new file mode 100644
index 0000000000..2cc91dce29
--- /dev/null
+++ b/test/generators/html/Oxcaml-Include_functor-Make.html
@@ -0,0 +1,50 @@
+
+
+ Make (Oxcaml.Include_functor.Make)
+
+
+
+
+
+
+
+
+
+ Module Include_functor.Make
+
+
+
+
Parameters
+
+
+
+
+
module
+ T
+
+ : sig ...
+ end
+
+
+
+
+
Signature
+
+
+
+
diff --git a/test/generators/html/Oxcaml-Include_functor.html b/test/generators/html/Oxcaml-Include_functor.html
new file mode 100644
index 0000000000..f964624cb1
--- /dev/null
+++ b/test/generators/html/Oxcaml-Include_functor.html
@@ -0,0 +1,48 @@
+
+
+ Include_functor (Oxcaml.Include_functor)
+
+
+
+
+
+
+
+
+
+ Module Oxcaml.Include_functor
+
+
+
+
+
+
+ module
+ Make
+
+ (T
+ : sig ...
+ end) : sig
+ ... end
+
+
+
+
+
+
+
+
+
diff --git a/test/generators/html/Oxcaml.html b/test/generators/html/Oxcaml.html
index 88dfb52689..13fda6edc8 100644
--- a/test/generators/html/Oxcaml.html
+++ b/test/generators/html/Oxcaml.html
@@ -1182,6 +1182,19 @@
+