[Haskell-cafe] Lambda-case / lambda-if

Christopher Done chrisdone at googlemail.com
Sat Oct 2 15:18:08 EDT 2010


I just had a look at hpaste.org, and, amusingly, the first paste has this:

      down <- openLazyURI "http://list.iblocklist.com/?list=bt_level1"
      case down of
            Left  _  -> error "Could not download file"
            Right bs -> do input <- bs
                                 ...

I can collect a huge list of instances of this annoying pattern from
Hackage and Google Code Search if it will encourage GHC HQ to make it
an extension.


More information about the Haskell-Cafe mailing list