summaryrefslogtreecommitdiff
path: root/Haskell-book/26/MaybeT/src/MonadTrans.hs
blob: 795416448a96586041974230aa5d01cfc0c5b3e7 (plain)
1
2
3
4
5
6
7
module MonadTrans where

class MonadTrans t where
    -- | Lift a computation from
    -- the argument monad to
    -- the constructed monad.
    lift :: (Monad m) => m a -> t m a