Closed woehr closed 6 years ago
The implementation of Variant uses Any
and unsafeCoerce
, so I don't see how we could provide these instances without exposing this and making them unsafe/useless.
I guess it's another limitation for not having a builtin variant type in GHC.
Thanks for the info.
I'm unsure whether this is impossible or just requires modifications on the library side, but deriving standalone instances of Data and Generic doesn't work.