The MonadPlus Class

hymn.types.monadplus - base monadplus class

class hymn.types.monadplus.MonadPlus(value)

Bases: hymn.types.monad.Monad

the monadplus class

Monads that also support choice and failure.

plus(other)

the associative operation

zero

the identity of plus.

It should satisfy the following law, left zero (notice the bind operator is haskell’s >>= here):

zero >>= f = zero