Created
November 5, 2014 11:21
-
-
Save nomaddo/ac62b9901a74df39c22f to your computer and use it in GitHub Desktop.
unit2.ml
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
# type 'a t = () of 'a;; | |
type 'a t = () of 'a | |
# () 12;; | |
- : int t = () 12 | |
# () ();; | |
Characters 3-5: | |
() ();; | |
^^ | |
Error: The constructor () expects 1 argument(s), | |
but is applied here to 0 argument(s) | |
# () (():unit);; | |
- : unit t = () () | |
# module M () = struct end;; | |
module M : functor () -> sig end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment