[Haskell-beginners] Good way of combining functions of type IO (Maybe a)
Nathan Hüsken
nathan.huesken at posteo.de
Mon Mar 3 15:10:05 UTC 2014
Hey,
I want to write a function, which is basically a concatenation of
functions of type "IO (Maybe a)".
When they all where of type "Maybe a", no Problem I would simple use the
Maybe monad.
|func :: Maybe c
func = do
a <- f1
b <- d2 a
...
|
but now they are of type "IO (Maybe a)". Is there some way of combing
these in a similar smart way?
Thanks!
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140303/44ca1bfa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140303/44ca1bfa/attachment.sig>
More information about the Beginners
mailing list