[Haskell-cafe] Re: Question regarding let clauses

Christian Maeder maeder at tzi.de
Thu Mar 9 09:10:58 EST 2006


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)

Christian


More information about the Haskell-Cafe mailing list