Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created December 1, 2017 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/8f36700d6d5ed21c6546b7de92b0fb3a to your computer and use it in GitHub Desktop.
Save deque-blog/8f36700d6d5ed21c6546b7de92b0fb3a to your computer and use it in GitHub Desktop.
class Monad m where
(>>=) : m a -> (a -> m b) -> m b
-- Or, using our Cont type alias
class Monad m where
(>>=) : m a -> Cont (m b) a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment