Skip to content

Add missing Generic instances in base

Most primitive types (Int, Char, etc.) have a GHC.Generics.Generic instance, but some are missing, such as Integer and the various Word* data types.

We should consistently have instances for all primitive types offered by base, since they are required if you want to derive a Generic instance for any type that contains them.

I boldly set the milestone to 7.10 because I naively assume this should be straightforward.

Trac metadata
Trac field Value
Version 7.8.3
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC ekmett, hvr, mail@nh2.me
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information