Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. f a b c
  2. => (Appl (Appl (Appl f a) b) c)
  3.  
  4. appl :: Parser Expr
  5. appl = do
  6. f <- expr
  7. gs <- many expr
  8. return $ foldr (x y -> Appl x y) f gs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement