RosettaCodeData/Task/Constrained-genericity/OCaml/constrained-genericity-3.ocaml

7 lines
164 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
type banana = Foo (* a dummy type *)
module Banana : Eatable with type t = banana = struct
type t = banana
let eat _ = print_endline "I'm eating a banana"
end