|
Org.Org.Semantic.HBase.Category.MonadPlus |
|
|
|
|
Description |
This includes some ideas from |
|
Synopsis |
|
|
|
Documentation |
|
class Monad m => MonadZero m where |
|
|
assert :: MonadZero m => Bool -> m () |
|
mFetchJust :: MonadZero m => Maybe a -> m a |
|
class MonadZero m => MonadOr m where |
| Methods | morelse :: m a -> m a -> m a | must satisfy morelse (return a) b = (return a) |
| | Instances | |
|
|
(|||) :: MonadOr m => m a -> m a -> m a |
same as morelse |
|
mnot :: MonadOr m => m a -> m () |
|
mOptional :: MonadOr m => m a -> m (Maybe a) |
|
mZeroOrMore :: MonadOr m => m a -> m [a] |
|
mOneOrMore :: MonadOr m => m a -> m [a] |
|
mOneOrMoreWithSeparator :: MonadOr m => m a -> m b -> m [a] |
|
mZeroOrMoreWithSeparator :: MonadOr m => m a -> m b -> m [a] |
|
class MonadOr m => MonadPlus m where |
| Methods | mplus :: m a -> m a -> m a | must satisfy (mplus a b) >>= c = mplus (a >>= c) (b >>= c) | | msum :: [m a] -> m a | | returnMany :: [a] -> m a |
| | Instances | |
|
|
(+++) :: MonadPlus m => m a -> m a -> m a |
same as mplus |
|
mConcatZeroOrMore :: (MonadOr m, MonadPlus n) => m (n a) -> m (n a) |
|
mConcatOneOrMore :: (MonadOr m, MonadPlus n) => m (n a) -> m (n a) |
|
class MonadPlus m => MonadFirst m where |
| Methods | mfirst :: m a -> m a | must satisfy mfirst (mplus a b) = mfirst a |
| | Instances | |
|
|
Produced by Haddock version 0.6 |