Hello,
Andre Nathan schrieb:
so I'm wondering what else I need to do for the do
notation to work.
import Prelude hiding ((=), return)
You explicitly ask for the well-known and standard functions = and
return to be hidden away, because you want to define your own versions.
p :: Parser
On Fri, 2007-05-18 at 22:32 +0200, Tillmann Rendel wrote:
[snip]
Now you should be able to use do notation with your own Parser type.
Thanks! Monads and instances weren't mentioned until that point, so I
was assuming that all that was needed for the do notation to work was
having (=) and return