Hi Dimitry,<br><br>I think what you want is stand-alone deriving: <a href="http://www.haskell.org/ghc/docs/latest/html/users_guide/deriving.html#stand-alone-deriving" target="_blank">http://www.haskell.org/ghc/docs/latest/html/users_guide/deriving.html#stand-alone-deriving</a><br>


<br><br>Cheers,<br>Pedro<br><br><div class="gmail_quote">On Fri, Sep 11, 2009 at 16:29, Dimitry Golubovsky <span dir="ltr">&lt;<a href="mailto:golubovsky@gmail.com" target="_blank">golubovsky@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Given a datatype defined somewhere in a third-party package, without<br>
deriving (Data) specified.<br>
<br>
Is it possible, in my module which is importing that datatype from<br>
that package, to auto-derive instance of Data for the said datatype?<br>
The goal is not to recompile the package just because an auto-derived<br>
instance is needed.<br>
<br>
Or no way other than to recompile the package?<br>
<br>
Thanks.<br>
<font color="#888888"><br>
--<br>
Dimitry Golubovsky<br>
<br>
Anywhere on the Web<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</font></blockquote></div><br>