[Haskell-beginners] how to skip pattern match error when applying a mapM_

Daniel Trstenjak daniel.trstenjak at gmail.com
Tue Jan 17 20:36:37 UTC 2017


> now how can I know the behaviour in between the line of a Monad.
> I aimagine that this is the purpose of the bind method (>>=).

Yes, that's the case.

> Where is this  defined  for Maybe and IO ?

You just look at the Monad instance for the type. IO is a bit special, but
here is the one for Maybe[1].

Greetings,
Daniel

[1] http://hackage.haskell.org/package/base-4.9.1.0/docs/src/GHC.Base.html#line-665
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20170117/804cf018/attachment.html>


More information about the Beginners mailing list