Created
July 12, 2017 11:49
-
-
Save rntz/9263883e73752f0bb00dcd84af9c933f to your computer and use it in GitHub Desktop.
This file contains 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
import Control.Monad | |
data Wut a = Wut | |
instance Functor Wut where fmap = liftM | |
instance Applicative Wut where pure = return; (<*>) = ap | |
instance Monad Wut where | |
return _ = Wut | |
Wut >>= f = Wut |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment