[Haskell-cafe] if - then - else layout

leledumbo leledumbo_cool at yahoo.co.id
Thu Sep 25 00:47:58 EDT 2008


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"

-- 
View this message in context: http://www.nabble.com/if---then---else-layout-tp19663006p19663006.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list