@hackage base-orphans0.3.2
Backwards-compatible orphan instances for base
Categories
License
MIT
Maintainer
Simon Hengel <sol@typeful.net>, João Cristóvão <jmacristovao@gmail.com>, Ryan Scott <ryan.gl.scott@gmail.com>
Links
Versions
Installation
Dependencies (2)
Dependents (78)
@hackage/Cabal, @hackage/transformers-base, @hackage/getopt-generics, @hackage/prim-instances, @hackage/test-framework, @hackage/cabal-plan, Show all…
base-orphans

Scope
base-orphans defines orphan instances that mimic instances available in later
versions of base to a wider (older) range of compilers. base-orphans does
not export anything except the orphan instances themselves and complements
base-compat.
Usage
To use base-orphans, simply import Data.Orphans ().
What is covered
- Added
ApplicativeandAlternativeinstances forReadPandReadPrec - Added
EqandOrdinstances forControl.Exception.ErrorCall - Added
Eq,Ord,Read, andShowinstances for data types inGHC.Generics - Added
Functor,Applicative, andMonadinstances forFirstandLast - Added
Monoid,Eq,Ord,Read, andShowinstances forConst - Added
ReadandShowinstances forDown - Added
Eq,Ord,Read, andShowinstances forZipList - Added
Monadinstance forWrappedMonad - Added
DataandIsListinstances forVersion Applicativeinstance for strict and lazySTBitsinstance forBoolGenericinstances for the data types inGHC.GenericsGenericinstance forAll,Any,Const,Dual,Endo,First,Last,Product,Sum,WrappedArrow,WrappedMonad, andZipListGeneric1instance forConst,Dual,First,Last,Product,Sum,WrappedArrow,WrappedMonad, andZipListFoldableinstance forEither,(,)andConstFunctorinstance forArgOrder,OptDescr, andArgDescrNuminstance forSumandProductReadinstance forFixedShowinstance forFingerprintStorableinstance forComplexandRatioTraversableinstance forEither,(,)andConstTypeableinstance for most data types and typeclasses (when possible)
Supported versions of GHC/base
ghc-7.10.1/base-4.8.0.0ghc-7.8.4/base-4.7.0.2ghc-7.8.3/base-4.7.0.1ghc-7.8.2/base-4.7.0.0ghc-7.8.1/base-4.7.0.0ghc-7.6.3/base-4.6.0.1ghc-7.6.2/base-4.6.0.1ghc-7.6.1/base-4.6.0.0ghc-7.4.2/base-4.5.1.0ghc-7.4.1/base-4.5.0.0ghc-7.2.2/base-4.4.1.0ghc-7.2.1/base-4.4.0.0ghc-7.0.4/base-4.3.1.0ghc-7.0.3/base-4.3.1.0ghc-7.0.2/base-4.3.1.0ghc-7.0.1/base-4.3.0.0
Patches are welcome; add tests for new code!