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"? Thanks, Paul
PR Stanley wrote:
failure :: (Parser a) failure = \inp -> [] The code might contain some syntax errors and I'd be grateful for any corrections.
It looks right conceptually. Depending on the definition of Parser, you may need failure = P (\inp -> []) or whatever constructor name instead of P. The type checker will know. I don't know about dual parser failure.
On 10/12/07, PR Stanley
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
participants (3)
-
Albert Y. C. Lai -
Brent Yorgey -
PR Stanley