[Haskell-cafe] if - then - else layout

Henning Thielemann lemming at henning-thielemann.de
Thu Sep 25 16:43:59 EDT 2008


On Wed, 24 Sep 2008, leledumbo wrote:

> consider this partial program:
> if n>5 then
>  putStrLn "big"
> else
>  putStrLn "small"
>
> this works fine in hugs, but in ghc I must change it to:
> if n>5
>  then
>    putStrLn "big"
>  else
>    putStrLn "small"

maybe related
   http://www.haskell.org/haskellwiki/If-then-else


More information about the Haskell-Cafe mailing list