Re: [Haskell-cafe] if - then - else layout

2008-09-25 Thread Jason Dusek
I think it'd be nice if we just replaced the if with a question mark :) -- _jsn ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] if - then - else layout

2008-09-25 Thread Jules Bean
leledumbo wrote: consider this partial program: if n5 then putStrLn big else putStrLn small this works fine in hugs, but in ghc I must change it to: if n5 then putStrLn big else putStrLn small Actually both of those are valid expressions. And they both work in hugs and ghc.

Re: [Haskell-cafe] if - then - else layout

2008-09-25 Thread Henning Thielemann
On Wed, 24 Sep 2008, leledumbo wrote: consider this partial program: if n5 then putStrLn big else putStrLn small this works fine in hugs, but in ghc I must change it to: if n5 then putStrLn big else putStrLn small maybe related http://www.haskell.org/haskellwiki/If-then-else

[Haskell-cafe] if - then - else layout

2008-09-24 Thread leledumbo
consider this partial program: if n5 then putStrLn big else putStrLn small this works fine in hugs, but in ghc I must change it to: if n5 then putStrLn big else putStrLn small -- View this message in context:

Re: [Haskell-cafe] if - then - else layout

2008-09-24 Thread Brandon S. Allbery KF8NH
On 2008 Sep 25, at 0:47, leledumbo wrote: consider this partial program: if n5 then putStrLn big else putStrLn small this works fine in hugs, but in ghc I must change it to: if n5 then putStrLn big else putStrLn small Actually, this also works: if n 5 then putStrLn big

Re: [Haskell-cafe] if - then - else layout

2008-09-24 Thread Fraser Wilson
I think you mean in a do. There is a proposal to fix this in Haskell' cheers, Fraser On Sep 25, 2008, at 6:59, Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote: On 2008 Sep 25, at 0:47, leledumbo wrote: consider this partial program: if n5 then putStrLn big else putStrLn small this works