Created
November 24, 2011 23:45
-
-
Save dyokomizo/1392525 to your computer and use it in GitHub Desktop.
Miracles
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
data Never | |
data Once = Once | |
miracle :: (Never -> a) -> (a -> Once) -> Once | |
miracle = undefined -- let's keep the mystery... | |
*Main> miracle miracle | |
<interactive>:1:9: | |
Couldn't match expected type `Never' with actual type `Never -> a0' | |
Expected type: Never -> a1 | |
Actual type: (Never -> a0) -> (a0 -> Once) -> Once | |
In the first argument of `miracle', namely `miracle' | |
In the expression: miracle miracle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment