[Haskell-beginners] Questions on GHCi 6.10.4 + general questions
Antoine Latter
aslatter at gmail.com
Fri Nov 27 04:06:52 EST 2009
On Fri, Nov 27, 2009 at 2:44 AM, Lev Broido <lev.broido at gmail.com> wrote:
> Hi
> I am getting the following message :
> parse error on input `=
> Code in question is attached .
>
On which line is the error occurring?
I'm not used to seeing braces used without semi-colons, so the last
bit is hard to follow.
The 'where' clause after 'new_state' appears to be at the same
indentation level as the 'new_state' declaration, which might confuse
GHC. But I'm not sure what the rules are once you start throwing the
braces around.
Antoine
More information about the Beginners
mailing list