Created
June 25, 2017 17:45
-
-
Save deque-blog/e401d4ce3296e7f13c9185cd26da178f 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
instance Functor ReservationExpr where | |
fmap fn expr = expr >>= Pure . fn | |
instance Applicative ReservationExpr where | |
pure = Pure | |
fExpr <*> aExpr = fExpr >>= \f -> fmap f aExpr | |
instance Monad ReservationExpr where | |
(>>=) = Bind |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment