Created
March 12, 2017 01:22
-
-
Save michelrandahl/6cb411b4b2ce6b689f3d7fc63cc1bad1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
-- Attempting to implement my own Maybe monad using the Option type naming from F# | |
data Option x = None | |
| Some x | |
Applicative Option where | |
pure = ?stuff1 | |
(<*>) = ?stuff2 | |
Monad Option where | |
(>>=) = ?stuff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment