|
|
|
|
|
by ufo
3266 days ago
|
|
GHC's Dynamic type can only contain monomorphic values, it can't handle polymorphic stuff. 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
(But perhaps you know this)