Created
June 20, 2013 14:48
-
-
Save spockz/5823379 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
| data R v where | |
| ... | |
| -- Notice the extra R as upposed to Fix | |
| newtype RFix f = RIn { out :: R (f (RFix f)) } | |
| instance Monad R where | |
| ... | |
| foo :: (f (RFix f) -> R b) -> RFix f -> R b | |
| foo c = (>>= c) . out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment