[Haskell-cafe] Monad fold
Christopher Howard
christopher.howard at frigidcode.com
Tue Apr 16 14:35:39 CEST 2013
So, I'm doing something like this
foldl (>>=) someA list :: Monad m => m a
where
list :: Monad m => [a -> m a],
someA :: Monad m => m a
Is there a more concise way to write this? I don't think foldM is what I
want -- or is it?
--
frigidcode.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130416/a1363f0a/attachment.pgp>
More information about the Haskell-Cafe
mailing list