Skip to content

Instantly share code, notes, and snippets.

@onlyshk
Created December 7, 2011 07:21
Show Gist options
  • Save onlyshk/1441842 to your computer and use it in GitHub Desktop.
Save onlyshk/1441842 to your computer and use it in GitHub Desktop.
Monad lifting
return :: (Monad m) => a -> m a
liftM :: (Monad m) => (a1 -> r) -> m a1 -> m r
liftM2 :: (Monad m) => (a1 -> a2 -> r) -> m a1 -> m a2 -> m r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment