Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changes

## NEXT RELEASE

- #560: Change `Lin.{constructible,deconstructible}` from an empty variant type
to an abstract type to get `Lin` compiling on `5.5.0+trunk` again, due
to https://github.com/ocaml/ocaml/pull/13994 removing special handling
of abstract and empty variants defined in the current module.

## 0.8

- #540: Significantly increase the probability of context switching in `Lin_thread`
Expand Down
8 changes: 4 additions & 4 deletions lib/lin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ end

(* Type-representing values *)

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

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

type (_,_,_,_) ty =
| Gen : 'a QCheck.arbitrary * ('a -> string) -> ('a, constructible, 's, combinable) ty
Expand Down
4 changes: 2 additions & 2 deletions lib/lin.mli
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ end

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

type constructible = |
type constructible
(** Type definition to denote whether a described type can be generated *)

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

Expand Down
Loading