More general Generic and Data instances for Data.Proxy.Proxy?

Carl Howells chowells79 at gmail.com
Fri Jul 17 22:06:04 UTC 2015


At the moment, the following two instances are listed in the haddocks
for Data.Proxy.Proxy:

    Data t => Data (Proxy * t)
    Generic (Proxy * t)

Do those instances need to be that restrictive?  Would it be possible
to generalize those instances to these?

    Data (Proxy k t)
    Generic (Proxy k t)

I'm not 100% comfortable with either of those classes, so I'm not sure
if those instances work right, but it seems like they should in a
hand-wavy way.

-- 
Carl Howells


More information about the Libraries mailing list