Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (*THIS WORKS*)
- module type Comparable = sig
- type t
- val compare : t -> t -> int
- end
- module Comparable = struct
- type t = string
- let compare = String.compare
- end
- module M = Map.Make(Comparable)
- (*THIS DOES NOT WORK ->>*)
- module type Comparable = sig
- type t
- val compare : t -> t -> int
- end
- module M = Map.Make(T : Comparable)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement