Skip to content

Commit ce562e4

Browse files
authored
Merge branch 'master' into watch-mode
2 parents e8b55b4 + c0eebce commit ce562e4

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/dir_contents.ml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,15 @@ end = struct
163163
modules
164164
end
165165

166-
module Library_modules = struct
166+
module Library_modules : sig
167+
type t = private
168+
{ modules : Module.t Module.Name.Map.t
169+
; alias_module : Module.t option
170+
; main_module_name : Module.Name.t
171+
}
172+
173+
val make : Library.t -> dir:Path.t -> Module.t Module.Name.Map.t -> t
174+
end = struct
167175
type t =
168176
{ modules : Module.t Module.Name.Map.t
169177
; alias_module : Module.t option

src/dir_contents.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ val dir : t -> Path.t
1717
val text_files : t -> String.Set.t
1818

1919
module Library_modules : sig
20-
type t =
20+
type t = private
2121
{ modules : Module.t Module.Name.Map.t
2222
; alias_module : Module.t option
2323
; main_module_name : Module.Name.t
@@ -42,7 +42,7 @@ val mlds : t -> Dune_file.Documentation.t -> Path.t list
4242

4343
val get : Super_context.t -> dir:Path.t -> t
4444

45-
type kind =
45+
type kind = private
4646
| Standalone
4747
| Group_root of t list Lazy.t (** Sub-directories part of the group *)
4848
| Group_part of t

0 commit comments

Comments
 (0)