
27 Jan
2013
27 Jan
'13
3:34 p.m.
Sorry, I wasn't clear. What I want is somehow to find out whether the
type under consideration is declared using data or newtype.
Is it possible?
Roman
* José Pedro Magalhães
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
wrote: Hi,
Is it possible to generate different instances for newtypes and datatypes using GHC.Generics?
Roman
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe