Skip to content

Instantly share code, notes, and snippets.

@rizo
Last active December 9, 2015 18:40
Show Gist options
  • Select an option

  • Save rizo/931002eb33bf8bd9eeaf to your computer and use it in GitHub Desktop.

Select an option

Save rizo/931002eb33bf8bd9eeaf to your computer and use it in GitHub Desktop.
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