Skip to content

Instantly share code, notes, and snippets.

@ironhouzi ironhouzi/error.txt
Created Jun 22, 2018

What would you like to do?
• Couldn't match expected type ‘[Letter]’
with actual type ‘[Letter] -> [(a, [Letter])]’
• Probable cause: ‘p’ is applied to too few arguments
In the first argument of ‘f’, namely ‘p’
In the first argument of ‘return’, namely ‘(f p)’
In the expression: return (f p)
• Relevant bindings include
p :: [Letter] -> [(a, [Letter])] (bound at src/Main.hs:49:28)
f :: [Letter] -> [(a -> b, [Letter])] (bound at src/Main.hs:49:13)
(<*>) :: Parser (a -> b) -> Parser a -> Parser b
(bound at src/Main.hs:49:16)
49 | (Parser f) <*> (Parser p) = return (f p)
| ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.