Created
November 14, 2016 22:59
-
-
Save Gbury/4556073c83d6693d9341c9cdf62db06b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module M : sig | |
type t = private int | |
val make : int -> t | |
end = struct | |
type t = int | |
let make i = | |
if i mod 2 = 0 then i | |
else raise (Invalid_argument "not an even number !") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment