j
k
j a
j l
Huong Nguyen writes:
newtype Parser a = Parser(String -> [(a, String)])
[...]
parse :: Parser a -> String -> [(a, String)] parse p cs = p cs \end{code}
Try this instead: parse (Parser p) cs = p cs (You forgot to deconstruct! :) )
Back to the thread
Back to the list