Skip to content

Instantly share code, notes, and snippets.

@dyokomizo
Created November 24, 2011 23:45
Show Gist options
  • Save dyokomizo/1392525 to your computer and use it in GitHub Desktop.
Save dyokomizo/1392525 to your computer and use it in GitHub Desktop.
Miracles
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