[Haskell-cafe] Re: Parsec problem

Neil Mitchell ndmitchell at gmail.com
Wed Jun 6 06:06:34 EDT 2007


Hi

> I suppose "names" or "try names" succeeds without consuming input, but
> calling parsecQuery fails for another reason that you haven't shown,

I assume (from the docs) that "try names" doesn't consume input (the
try is meant to take care of that).

I also know that "spaces ; types" works on its own, so what other
reason is there?

The code is at:

http://www.cs.york.ac.uk/fp/darcs/hoogle/src/Hoogle/Query/Parser.hs

Darcs repo at:

http://www.cs.york.ac.uk/fp/darcs/hoogle/

And the test case that is failing is:

parseQuery "[a]"

Thanks

Neil


More information about the Haskell-Cafe mailing list