Mon Jun 29 07:13:39 EDT 2009 [email protected]
* Syntax/Haskell.hs: Where clauses are now a bit more precise
Ignore-this: 6284380d7bd8173a7107a093c0c44b46
now the parser will highlight where clauses as errors if they
directly follow anything except functions (class, instance and data which
also use where are handled separately)
where clauses are not allowed inside of guards:
example | True = t
where t = 2
| False = t'
where t' = 3
will be an error, while
example |False = t
|True = 33
where t = 32
is fine.
M ./Yi/Syntax/Haskell.hs -12 +12
--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---