Guest User

Untitled

a guest
Jun 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. • Couldn't match expected type ‘[Letter]’
  2. with actual type ‘[Letter] -> [(a, [Letter])]’
  3. • Probable cause: ‘p’ is applied to too few arguments
  4. In the first argument of ‘f’, namely ‘p’
  5. In the first argument of ‘return’, namely ‘(f p)’
  6. In the expression: return (f p)
  7. • Relevant bindings include
  8. p :: [Letter] -> [(a, [Letter])] (bound at src/Main.hs:49:28)
  9. f :: [Letter] -> [(a -> b, [Letter])] (bound at src/Main.hs:49:13)
  10. (<*>) :: Parser (a -> b) -> Parser a -> Parser b
  11. (bound at src/Main.hs:49:16)
  12. |
  13. 49 | (Parser f) <*> (Parser p) = return (f p)
  14. | ^
Add Comment
Please, Sign In to add comment