[Haskell-cafe] How to simplify the code of Maybe within a monad?

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Fri Aug 17 05:48:54 CEST 2012

  Since Maybe is a monad, I could write code like 'maybeA >> maybeB >>
maybeC' to check if all these are not Nothing. Or 'liftM foo maybeD'
to avoid ugly 'case of'.
  But how if here maybe[ABC] are like 'IO (Maybe Int)', or foo is type
of 'Int -> IO Int'?

And for G+, please use magiclouds#gmail.com.

More information about the Haskell-Cafe mailing list