base-compat-0.13.1: A compatibility layer for base
Provides functions available in later versions of base
to
a wider range of compilers, without requiring you to use CPP
pragmas in your code. See the
README
for what is covered. Also see the
changelog
for recent changes.
Note that base-compat
does not add any orphan instances.
There is a separate package,
base-orphans
,
for that.
In addition, base-compat
does not backport any data types
or type classes. See
this section of the README
for more info.
base-compat
is designed to have zero dependencies. For a
version of base-compat
that depends on compatibility
libraries for a wider support window, see the
base-compat-batteries
package. Most of the modules in this library have the same
names as in base-compat-batteries
to make it easier to
switch between the two. There also exist versions of each
module with the suffix .Repl
, which are distinct from
anything in base-compat-batteries
, to allow for easier
use in GHCi.
- Control
- Concurrent
- Exception
- Monad
- Control.Monad.Compat
- Fail
- IO
- ST
- Data
- Bifoldable
- Bifoldable1
- Bifunctor
- Bitraversable
- Bits
- Bool
- Complex
- Either
- Foldable
- Foldable1
- Function
- Functor
- Data.Functor.Compat
- Compose
- Const
- Contravariant
- Identity
- Product
- Sum
- IORef
- List
- Monoid
- Proxy
- Ratio
- STRef
- Semigroup
- String
- Traversable
- Tuple
- Type
- Typeable
- Version
- Void
- Word
- Debug
- Foreign
- Foreign.Compat
- ForeignPtr
- Marshal
- Alloc
- Array
- Foreign.Marshal.Compat
- Safe
- Unsafe
- Utils
- Numeric
- Prelude
- System
- Text
- Type