Created
December 7, 2011 07:29
-
-
Save onlyshk/1441866 to your computer and use it in GitHub Desktop.
MonadTrans lifting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MonadTrans t where | |
lift :: Monad m => m a -> t m a -- lifts a value from the inner monad m to the transformed monad t m | |
-- could be called lift0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment