Skip to content

Instantly share code, notes, and snippets.

@Pitometsu
Last active April 11, 2019 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pitometsu/679a053b027637fbb6a46c35903cec92 to your computer and use it in GitHub Desktop.
Save Pitometsu/679a053b027637fbb6a46c35903cec92 to your computer and use it in GitHub Desktop.
extensible variants can't be nonrec
module type A = sig
type t = ..
end
module type B = sig
type t
module C : sig
include A
type t += Ref of (* B.t ??? *)
end
end
(* or *)
module E (sig .. end) : sig
type t
module C : sig
include A
type t += Ref of (* E.t ??? *)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment