by ufo · 9y ago · 0 comments
GHC also considers Dynamic->Dynamic and Int->Int to be incompatible types, which is not quite what one would want in a gradualy typed setting.
Haskell also sidesteps the difficulties that come with mutability in a gradualyly typed setting.
Sort of. If you wrap a polymorphic type inside a monomorphic one then it can handle it fine, for example
data Mono = Mono (forall a b. a -> b -> a)
(But perhaps you know this)