Strange type error with -XTypeApplications

4 Jun
2016
4 Jun
'16
4:32 p.m.
This program: * {-# LANGUAGE TypeApplications #-}* * main = print (fromDynamic @Int undefined)* produces this error message: * foo.hs:3:15: error:* * • Cannot apply expression of type ‘t0’* * to a visible type argument ‘Int’* * • In the first argument of ‘print’, namely* * ‘(fromDynamic @Int undefined)’* * In the expression: print (fromDynamic @Int undefined)* * In an equation for ‘main’:* * main = print (fromDynamic @Int undefined)* However, I'd expect it to be "Not in scope: fromDynamic"
3273
Age (days ago)
3273
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mitchell Rosen