Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OCaml version 4.02.0
- _____________________________
- [| + | | Batteries 2.3 - |
- |_____|_|____________________|
- _____________________________
- | - Type '#help;;' | | + |]
- |______________________|_|___|
- # module StrKey =
- struct
- type t = string
- let equal s1 s2 = ( s1 == s2 )
- let hash s = ( Hashtbl.hash s )
- end;;
- module StrKey :
- sig type t = string val equal : 'a -> 'a -> bool val hash : 'a -> int end
- # module type of Hashtbl.Make( StrKey );;
- Characters 12-14:
- module type of Hashtbl.Make( StrKey );;
- ^^
- Error: Syntax error
- # module type Hashtbl.Make( StrKey );;
- Characters 19-20:
- module type Hashtbl.Make( StrKey );;
- ^
- Error: Syntax error
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement