[Haskell-cafe] Code walking off the right edge of the screen
deniz.a.m.dogan at gmail.com
Sat Jun 20 14:05:11 EDT 2009
I (too) often find myself writing code such as this:
then putStrLn "howdy there!"
else if somethingElse
then putStrLn "howdy ho!"
I recall reading some tutorial about how you can use the Maybe monad
if your code starts looking like this, but as you can see, that
doesn't really apply here. "something" and "somethingElse" are simply
booleans and each of them have different actions to take if either of
them is True.
So how do I make code like this prettier?
More information about the Haskell-Cafe