Last active
December 9, 2015 18:40
-
-
Save rizo/931002eb33bf8bd9eeaf to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Person = struct | |
| type t = { | |
| name : string; | |
| age : int; | |
| } | |
| type 'a with_meta = t * 'a | |
| end | |
| type profession = string | |
| let p1 : profession Person.with_meta = | |
| ({ name = "Bob"; age = 30 }, "Butcher") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment