Chris Kuklewicz <[EMAIL PROTECTED]> writes:

> Prelude> let { fac :: Integer -> Integer; fac 0 = 1; fac n | n > 0 = n * fac 
> (n-1) }

As somebody made me aware just the other day, the bracer are only
necessary for nested expressions.  So you can just use ; for line
breaks: 

Prelude> let fac :: Integer -> Integer; fac 0 = 1; fac n | n > 0 = n * fac (n-1)

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to