[Haskell-cafe] Externally derive instance of Data?

Dimitry Golubovsky golubovsky at gmail.com
Fri Sep 11 10:29:50 EDT 2009


Hi,

Given a datatype defined somewhere in a third-party package, without
deriving (Data) specified.

Is it possible, in my module which is importing that datatype from
that package, to auto-derive instance of Data for the said datatype?
The goal is not to recompile the package just because an auto-derived
instance is needed.

Or no way other than to recompile the package?

Thanks.

-- 
Dimitry Golubovsky

Anywhere on the Web


More information about the Haskell-Cafe mailing list