[Haskell-cafe] Haskell newbie indentation query.

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Oct 15 09:50:53 EDT 2008


Hello Vivek,

Wednesday, October 15, 2008, 3:39:54 PM, you wrote:

i think that practical answer is suggestion to use `case` instead:

case () of
 _ | x < 5 -> do abc
                 def
                 ...
                 
   | x==5  -> do ...
   
   | otherwise -> do ...

it's pretty common pattern for haskell

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list