Guest User

Untitled

a guest
Jan 19th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. cond [a] {Infinite} :-
  2. [a] {a : [a] {Infinite}}
  3.  
  4. cond [a] {NonEmpty} :-
  5. [a] {a : [a]}
  6.  
  7. cond Maybe a {NonEmpty} :-
  8. Just a
  9.  
  10. newtype Stream a = Stream ([a] {Infinite})
  11.  
  12. data Finger a =
  13. One a
  14. Two a a
  15. Three a a a
  16. Four a a a a
  17.  
  18. newtype Node23 a = Node (Finger a {Two a a | Three a a a})
Add Comment
Please, Sign In to add comment