Skip to content

Commit 1c3bbf6

Browse files
EmileTrotignonjonludlam
authored andcommitted
do not use inline records for retro-compat
1 parent 099e88a commit 1c3bbf6

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

src/odoc/compile.ml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,20 @@ open Or_error
1919
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2020
*)
2121

22+
type package_spec = { package : string; output : Fpath.t }
23+
type parent_spec = {
24+
parent : string option;
25+
children : string list;
26+
output : Fpath.t;
27+
}
28+
29+
type parent_id_spec = { parent_id : string; output_dir : string }
30+
2231
type cli_spec =
2332
| CliNoParent of Fpath.t
24-
| CliPackage of { package : string; output : Fpath.t }
25-
| CliParent of {
26-
parent : string option;
27-
children : string list;
28-
output : Fpath.t;
29-
}
30-
| CliParentId of { parent_id : string; output_dir : string }
33+
| CliPackage of package_spec
34+
| CliParent of parent_spec
35+
| CliParentId of parent_id_spec
3136

3237
type spec = {
3338
parent_id : Paths.Identifier.ContainerPage.t option;

src/odoc/compile.mli

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@ open Odoc_model
1818
open Odoc_model.Paths
1919
open Or_error
2020

21+
type package_spec = { package : string; output : Fpath.t }
22+
type parent_spec = {
23+
parent : string option;
24+
children : string list;
25+
output : Fpath.t;
26+
}
27+
28+
type parent_id_spec = { parent_id : string; output_dir : string }
29+
2130
type cli_spec =
2231
| CliNoParent of Fpath.t
23-
| CliPackage of { package : string; output : Fpath.t }
24-
| CliParent of {
25-
parent : string option;
26-
children : string list;
27-
output : Fpath.t;
28-
}
29-
| CliParentId of { parent_id : string; output_dir : string }
32+
| CliPackage of package_spec
33+
| CliParent of parent_spec
34+
| CliParentId of parent_id_spec
3035

3136
val name_of_output : prefix:string -> Fs.File.t -> string
3237
(** Compute the name of the page from the output file. Prefix is the prefix to

0 commit comments

Comments
 (0)