[Haskell-cafe] GHC.Generics and newtypes

José Pedro Magalhães jpm at cs.uu.nl
Sun Jan 27 21:29:52 CET 2013


Hi Roman,

Yes, the automatic derivation of Generic instances does not see through
newtypes.


Cheers,
Pedro

On Sun, Jan 27, 2013 at 8:17 PM, Roman Cheplyaka <roma at ro-che.info> wrote:

> Hi,
>
> Is it possible to generate different instances for newtypes and
> datatypes using GHC.Generics?
>
> Roman
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130127/97db59e3/attachment.htm>


More information about the Haskell-Cafe mailing list