@hackage base-orphans0.4.4
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.
Note that base-orphans doesn't cover every possible instance. See the
What is not covered section for exceptions.
Usage
To use base-orphans, simply import Data.Orphans ().
What is covered
- Added
ApplicativeandAlternativeinstances forReadPandReadPrec - Added
Bits,Bounded, andIntegralinstances forCDev - Added
EqandOrdinstances forControl.Exception.ErrorCall - Added
Eq,Ord,Read, andShowinstances for data types inGHC.Generics - Added
Functor,Applicative,Alternative, andMonadPlusinstances forArrowMonad - 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 forBoolFoldableinstance forEither,(,)andConstFunctorinstance forHandler,ArgOrder,OptDescr, andArgDescrNuminstance forSumandProductReadinstance forFixedShowinstance forFingerprintStorableinstance forComplexandRatioTraversableinstance forEither,(,)andConstTypeableinstance for most data types, typeclasses, and promoted data constructors (when possible)
What is not covered
base-orphans does not define the following instances:
GenericorGeneric1instances. These can be found in theGenerics.Deriving.Instancesmodule of thegeneric-derivinglibrary.
Supported versions of GHC/base
ghc-7.10.2/base-4.8.1.0ghc-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
We also make an attempt to keep base-orphans building with GHC HEAD, but due
to its volatility, it may not work at any given point in time. If it doesn't,
please report it!
Patches are welcome; add tests for new code!