Hi Dimitry, I think what you want is stand-alone deriving: http://www.haskell.org/ghc/docs/latest/html/users_guide/deriving.html#stand-alone-deriving
Cheers, Pedro On Fri, Sep 11, 2009 at 16:29, Dimitry Golubovsky <[email protected]>wrote: > 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 > _______________________________________________ > Haskell-Cafe mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/haskell-cafe >
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
