Skip to content

Instantly share code, notes, and snippets.

@cleichner
Last active August 29, 2015 14:02
Show Gist options
  • Save cleichner/dd7aba6f16c3895ea23f to your computer and use it in GitHub Desktop.
Save cleichner/dd7aba6f16c3895ea23f to your computer and use it in GitHub Desktop.
wrapM
wrapM :: Monad m => (a -> b) -> (a -> m b)
wrapM = (return .)
-- same as wrapM f = \x -> return (f x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment