Skip to content

Commit 0fccd37

Browse files
committed
Make types in Lib.t less recursive
There was spurious recursion in the type definitions of status and lib Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 02b98c1 commit 0fccd37

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib.ml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,19 @@ type t =
146146
mutable sub_systems : Sub_system0.Instance.t Lazy.t Sub_system_name.Map.t
147147
}
148148

149-
and db =
149+
type status =
150+
| St_initializing of Id.t (* To detect cycles *)
151+
| St_found of t
152+
| St_not_found
153+
| St_hidden of t * Error.Library_not_available.Reason.Hidden.t
154+
155+
type db =
150156
{ parent : db option
151157
; resolve : Lib_name.t -> resolve_result
152158
; table : (Lib_name.t, status) Hashtbl.t
153159
; all : Lib_name.t list Lazy.t
154160
}
155161

156-
and status =
157-
| St_initializing of Id.t (* To detect cycles *)
158-
| St_found of t
159-
| St_not_found
160-
| St_hidden of t * Error.Library_not_available.Reason.Hidden.t
161-
162162
and resolve_result =
163163
| Not_found
164164
| Found of Lib_info.t

0 commit comments

Comments
 (0)