Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Declarative = struct
- type bind = < bind : unit >
- type listen = < listen : unit >
- type 'a mode =
- | Bind : bind mode
- | Listen : listen mode
- | BindListen : < bind ; listen > mode
- let f : < bind ; listen > mode -> bind mode = fun x -> (x :> bind mode)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement