[Haskell] I'm a beginner --- struggling with the SimpleJSON example from Real World Haskell

Daniel Fischer daniel.is.fischer at googlemail.com
Tue Dec 14 23:36:40 CET 2010

On Tuesday 14 December 2010 22:44:23, David Jameson wrote:
> OMG --- that was it --- I can't tell you how many hours I have been
> wrestling with this.
> Thank you so much for the quick response.
> I was aware that Haskell required indentation for some things (and I'm a
> fan of indentation) but I didn't realize it required NO indentation for
> some things --- I thought that went away with FORTRAN  (grin)

Well, you could have indented the rest of the code to the same level as the 
`data JValue'. The point is that all declarations at the same level must 
have the same indentation (unless you use explicit braces and semicolons).

> D

More information about the Haskell mailing list