[Haskell-cafe] Re: Why does Haskell have the if-then-else syntax?

Stefan Monnier monnier at iro.umontreal.ca
Thu Jul 27 12:55:45 EDT 2006


> Confusingly,

> if c
> then t
> else f

> Also works, although no-one really knows why.

Actually, it doesn't work inside a `do' layout,


        Stefan



More information about the Haskell-Cafe mailing list