Gabriel439/Haskell-Errors-Library — pull request #10 by k0001 (2013-01-21 21:06:03+00:00)
Title: Added maybeT

`maybeT` is just `maybe` from the `Prelude`, but for `MaybeT` instead of just `Maybe`.

```haskell
maybeT :: Monad m => m b -> (a -> m b) -> MaybeT m a -> m b
maybeT mb kb (MaybeT ma) = ma >>= maybe mb kb
```

Example usage:

```haskell
>>> maybeT (return 0) (return . (+1)) (MaybeT [Just 4, Nothing, Just 5])
[5,0,6]
```

In the same spirit, `Control.Monad.Trans.Either` already exports `eitherT`, so it makes sense to include this variant too.