Created
March 20, 2013 19:31
-
-
Save supki/5207714 to your computer and use it in GitHub Desktop.
Why contravariant type recursion is bad.
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 Silly a = Silly (Silly a -> a) | |
| herp :: Silly a -> a | |
| herp (Silly f) = f (Silly f) | |
| derp :: a | |
| derp = herp (Silly herp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment