[Haskell-cafe] Indentation Creep

ajb at spamcop.net ajb at spamcop.net
Sun Jul 15 01:34:29 EDT 2007


One small suggestion.

Quoting Thomas Conway <drtomc at gmail.com>:

>                 Just (v,e) -> do
>                     case e of
>                         True -> [...]
>                         False -> [...]

This works just as well:

                  Just (v,True) -> [...]
                  Just (v,False) -> [...]

And given that you wrote the corresponding code in another compiler that
we won't mention, I feel justified in saying: Shame on you for not
spotting that one. :-)

Andrew Bromage

More information about the Haskell-Cafe mailing list