Skip to content

Instantly share code, notes, and snippets.

@samoht
Last active December 21, 2015 23:39
Show Gist options
  • Save samoht/6383888 to your computer and use it in GitHub Desktop.
Save samoht/6383888 to your computer and use it in GitHub Desktop.
type error
module type S1 = sig
type t
end
module X = struct
type t = int
let f x = x
end
module type S2 = sig
module S: S1
end
module Y = struct
module S = (X:S1 with type t = int)
end
module Z: S2 with module S = X = Y
@samoht
Copy link
Author

samoht commented Aug 29, 2013

   In module S:
   Modules do not match:
     sig type t = int end
   is not included in
     sig type t = int val f : 'a -> 'a end
   In module S:
   The field `f' is required but not provided

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment