8 Feb
2002
8 Feb
'02
11:51 a.m.
Can't we require that a local definition be more indented than the enclosing definition? That way my code would've been rejected by the compiler, and the error message (something like "Empty where-clause on line xxx") can actually be helpful.
The Haskell definition *does* require that nested definitions be more indented than the enclosing scope, and empty where declarations are legal. Hugs doesn't follow the report here. Thanks for providing some evidence to support my view that this restriction on the layout rule is The Right Thing :-) Cheers, Simon
8914
Age (days ago)
8914
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow