Advertisement
Guest User

Untitled

a guest
Jun 27th, 2021
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.29 KB | None | 0 0
  1.   module Declarative = struct
  2.     type bind = < bind : unit >
  3.     type listen = < listen : unit >
  4.  
  5.     type 'a mode =
  6.     | Bind : bind mode
  7.     | Listen : listen mode
  8.     | BindListen : < bind ; listen > mode
  9.  
  10.     let f : < bind ; listen > mode -> bind mode = fun x -> (x :> bind mode)
  11.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement