Guest User

Untitled

a guest
Jan 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. -- -> = pure function constructor
  2. -- ~> = impure function constructor
  3.  
  4. -- You can curry up to the first ~>
  5. print :: Show a => a ~> ()
  6. printf :: Show a => String -> [a] ~> ()
  7.  
  8. -- The type Ref is for destructive updating
  9. put :: a -> Ref a
  10. set :: Ref a -> a ~> ()
  11. get :: Ref a ~> a
Add Comment
Please, Sign In to add comment