Repository navigation
Closed
Description
Historically, several new instances that were introduced in later versions of GHC weren't well publicized, causing me to have to hunt them down myself later, a very tedious process. The GHC devs have been much better about this recently, but just in case, I'll document what needs to be backported once GHC 8.0.1-rc1 is released.
I created this initial list based off of the base changelog here, so this may not be comprehensive. If there's something missing, please tell me so that I can get them all in one go (hopefully)!
New instances
ApplicativeinstancesData.Complex(base-4.4and later only)Complex
Data.MonoidDualProductSum
BoundedinstancesControl.ApplicativeConst
Data.Functor.Identity(base-4.8only)Identity
DatainstancesData.MonoidAllAltAnyDualFirstLastProductSum
EnuminstancesControl.ApplicativeConst
Data.Functor.Identity(base-4.8only)Identity
FoldableinstancesControl.ApplicativeZipList
Data.Complex(base-4.4and later only)Complex
Data.MonoidDualFirstLastProductSum
FunctorinstancesData.Complex(base-4.4and later only)Complex
Data.MonoidDualProductSum
(Done)GenericinstancesData.Complex(base-4.4and later only)Complex
Data.VersionVersion
System.ExitExitCode
(Done)Generic1instancesData.Complex(base-4.4and later only)Complex
Data.Proxy(base-4.7and later only)Proxy
IxinstancesControl.ApplicativeConst
Data.Functor.Identity(base-4.8only)Identity
MonadinstancesData.Complex(base-4.4and later only)Complex
Data.MonoidDualProductSum
Data.Tuple(,)
MonadFixinstancesData.MonoidAltDualFirstLastProductSum
MonadZipinstancesData.MaybeMaybe
Data.MonoidAltDualFirstLastProductSum
MonoidinstancesData.Functor.IdentityIdentity
System.IOIO
StorableinstancesControl.ApplicativeConst
Data.Functor.Identity(base-4.8only)Identity
Data.Tuple()
TraversableinstancesControl.ApplicativeZipList
Data.Complex(base-4.4and later only)Complex
Data.MonoidDualFirstLastProductSum
Other TODOs
TheDone.Monoidinstance forIdentityneeds to be backported totransformersTheDoneSemigroupinstance forIdentityneeds to be backported totransformers- We should not add the upcoming
MonadPlus IOandAlternative IOinstances tobase-orphans, as they are provided viaControl.Monad.Trans.Errorintransformersbecause of unfortunate historical reasons. We should add a note in theREADMEabout this. - The new
Functorinstances readily admitDistributive,Representable, andAdjunctioninstances. - Note in the
READMEthatsemigroupsandtransformersbackport some things added in GHC 8.0
Metadata
Metadata
Assignees
Labels
No labels
Activity
Incorporate new instances introduced in base-4.9