Skip to content

Commit cfd2faa

Browse files
committed
WIP: rework GADT index types to get Lin compiling on trunk again
1 parent 32e9a31 commit cfd2faa

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/lin.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ end
141141

142142
(* Type-representing values *)
143143

144-
type constructible = |
145-
type deconstructible = |
144+
type constructible = private Constructible [@@ocaml.warning "-37"]
145+
type deconstructible = private Deconstructible [@@ocaml.warning "-37"]
146146

147-
type combinable
148-
type noncombinable
147+
type combinable = private Combinable [@@ocaml.warning "-37"]
148+
type noncombinable = private Noncombinable [@@ocaml.warning "-37"]
149149

150150
type (_,_,_,_) ty =
151151
| Gen : 'a QCheck.arbitrary * ('a -> string) -> ('a, constructible, 's, combinable) ty

lib/lin.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ end
5757

5858
(** {1 Type-representing values} *)
5959

60-
type constructible = |
60+
type constructible
6161
(** Type definition to denote whether a described type can be generated *)
6262

63-
type deconstructible = |
63+
type deconstructible
6464
(** Type definition to denote whether a described type can be deconstructed,
6565
i.e., tested for equality. *)
6666

0 commit comments

Comments
 (0)