[Haskell-cafe] Re: Question regarding let clauses

Brian Hulley brianh at metamilk.com
Thu Mar 9 09:52:42 EST 2006


Christian Maeder wrote:
> Martin Percossi wrote:
>> matMul a b = do { let foo = 2*5; return a }
>
> probably
>      { let {foo = 2*5}; return a }
> will work (untested)
>
> your ";" indicates a further let-equation, but the possibility to use
> ";" without "{" and "}" is a bit pathologic (and haddock used to
> reject it)

I think this kind of example just proves my numerous arguments that the 
layout rule should be changed to only allow ';' after an *explicit* opening 
brace...

Regards, Brian. 



More information about the Haskell-Cafe mailing list