Skip to content

Instantly share code, notes, and snippets.

@michelrandahl
Created March 12, 2017 01: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 michelrandahl/4bbf289df4b2303701461b778ee10f77 to your computer and use it in GitHub Desktop.
Save michelrandahl/4bbf289df4b2303701461b778ee10f77 to your computer and use it in GitHub Desktop.
-- Attempting to implement my own Maybe monad using the Option type naming from F#
data Option x = None
| Some x
Functor Option where
map = ?stuff3
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