-
-
Save sras/345b4e16102bbfe95a3a707507370b6f 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
data Test where | |
Test :: (forall a. (Typeable a) => a -> ()) -> Test | |
callTest :: Test -> () | |
callTest (Test fn) = case cast 'c' of <-- Error here | |
Just b -> fn b | |
|| • No instance for (Typeable a0) arising from a use of ‘cast’ | |
|| • In the expression: cast 'c' | |
|| In the expression: case cast 'c' of { Just b -> fn b } | |
|| In an equation for ‘callTest’: | |
|| callTest (Test fn) = case cast 'c' of { Just b -> fn b } | |
|| | | |
|| 210 | callTest (Test fn) = case cast 'c' of | |
|| | ^^^^^^^^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment