[Haskell-beginners] Alternative

Imants Cekusins imantc at gmail.com
Wed Dec 28 12:41:07 UTC 2016


>  something even simpler:​

cheers Oliver. asum *is* better.

how is it possible to (<|>) results in:


type Am m  = (Alternative m, Monad m)

(Am m, Am n) => (a -> m (n b)) -> [a] -> m (n b)

?

say, m (n b) is
IO (Maybe b)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20161228/dfc1d49f/attachment.html>


More information about the Beginners mailing list