[Haskell-cafe] Dual Parser Failure???

Brent Yorgey byorgey at gmail.com
Sat Oct 13 10:02:47 EDT 2007


On 10/12/07, PR Stanley <prstanley at ntlworld.com> wrote:
>
> Hi
> failure :: (Parser a) failure = \inp -> []
> The code might contain some syntax errors and I'd be grateful for any
> corrections.
> What is a "dual parser failure"?


You should probably put the definition on a separate line, thus:

failure :: (Parser a)
failure = \inp -> []

If that doesn't work, you could send along the definition of the Parser
type.

-Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071013/7a450a41/attachment.htm


More information about the Haskell-Cafe mailing list