Created
April 15, 2020 06:38
-
-
Save fusion5/1b1add69ca1ada1d927e5c77c5e341bc 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
class Documentation m where | |
doc :: String -> m | |
-- M1 and M2 are monads. | |
instance Documentation (M1 ()) where | |
doc = ... | |
instance Documentation (M2 ()) where | |
doc = ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment