[Haskell-cafe] Code walking off the right edge of the screen

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sat Jun 20 17:35:12 EDT 2009

On Jun 20, 2009, at 14:05 , Deniz Dogan wrote:
> if something
>  then putStrLn "howdy there!"
>  else if somethingElse
>          then putStrLn "howdy ho!"
>          else ...

FWIW, when I see this I generally start looking for a higher order way  
to express it.  The monoid instance for lists can be a good start.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090620/9fd8f6ca/PGP.bin

More information about the Haskell-Cafe mailing list