[Haskell-cafe] Proving my point
Philippa Cowderoy
flippa at flippac.org
Fri May 16 15:39:53 EDT 2008
On Fri, 16 May 2008, Achim Schneider wrote:
> "test.l" (line 7, column 1):
> unexpected end of input
> expecting "(", Lambda abstraction, Let binding, Atom, end of input or
> Function application
>
> I obviously don't know anything about Parsec's inner workings. I'm
> going to investigate as soon as I stopped despairing.
>
One gotcha here, which really wants fixing: if the show instance for your
token type returns "", Parsec assumes that's EOF for error purposes. Guess
who ran into that with a separate token for layout-inserted braces?
--
flippa at flippac.org
Sometimes you gotta fight fire with fire. Most
of the time you just get burnt worse though.
More information about the Haskell-Cafe
mailing list