| AArch64 | |
| ppc64le | |
| s390x | |
| x86-64 |
- Update base-compat to version 0.12.1.
[#]# Changes in 0.12.1 [2021.10.30]
- Backport `Solo` to `Data.Tuple.Compat` when building with `ghc-prim-0.7.0`
or later
- Update base-compat to version 0.12.0. Upstream has edited the change log file since the last release in a non-trivial way, i.e. they did more than just add a new entry at the top. You can review the file at: http://hackage.haskell.org/package/base-compat-0.12.0/src/CHANGES.markdown
- disable %{ix86} build
- Update base-compat to version 0.11.2. [#]# Changes in 0.11.2 [2020.09.30] - Sync with `base-4.15`/GHC 9.0 - Backport `singleton` to `Data.List` and `Data.List.NonEmpty` - Backport `hGetContents'`, `getContents'`, and `readFile'` added to `System.IO`
- Replace %setup -q with the more modern %autosetup macro.
- Re-generate file with latest version of spec-cleaner.
- Update base-compat to version 0.11.1.
[#]# Changes in 0.11.1 [2020.01.27]
- Sync with `base-4.14`/GHC 8.10
- Backport `isResourceVanishedError`, `resourceVanishedErrorType`, and
`isResourceVanishedErrorType` to `System.IO.Error.Compat`.
- Update base-compat to version 0.11.0.
[#]# Changes in 0.11.0 [2019.09.06]
- Sync with `base-4.13`/GHC 8.8
- Backport `MonadFail(fail)` to `Prelude.Compat` and `Control.Monad.Compat`.
Because `Prelude.Compat.fail` now corresponds to the `fail` from `MonadFail`
instead of `Monad`, some care is required to implement `Monad.fail` on
pre-8.8 versions of GHC. The following template is recommended:
```haskell
import Prelude.Compat
import qualified Control.Monad as Monad
import qualified Control.Monad.Fail as Fail
data Blah a = ...
instance Functor Blah where ...
instance Applicative Blah where ...
instance Monad.Monad Blah where
(>>=) = ...
[#]if !(MIN_VERSION_base(4,13,0))
fail = Fail.fail
[#]endif
instance Fail.MonadFail Blah where
fail = ...
```
This approach is also backwards-compatible with previous releases of
`base-compat`.
Note that the `MonadFail` class has only been in `base` since
`base-4.9`/GHC 8.0, so accordingly, this can only be backported back
to GHC 8.0. If you wish to have a version of
`Prelude.Compat`/`Control.Monad.Compat` that backports
`MonadFail` to older GHCs (by conditionally depending on the `fail`
library), use the `Prelude.Compat`/`Control.Monad.Compat` modules from the
`base-compat-batteries` package.
- Introduce the `Data.Type.Equality.Compat` module, which re-exports
`Data.Type.Equality` if using `base-4.7`/GHC-7.8 or later. If using an older
version of `base`, this module is empty.
If you wish to have a version of
`Data.Type.Equality.Compat` with older GHCs
(by conditionally depending on the `type-equality` library),
use the `Data.Type.Equality.Compat` module from the
`base-compat-batteries` package.
- Drop obsolete group attributes.
- Update base-compat to version 0.10.5. [#]# Changes in 0.10.5 [2018.10.18] - Enable `BangPatterns` in `Prelude.Compat`.
- Cosmetic: replace tabs with blanks, strip trailing white space, and update copyright headers with spec-cleaner.
- Update base-compat to version 0.10.4.
[#]# Changes in 0.10.4 [2018.07.03]
- Make more modules `Trustworthy`. In particular, fix a regression in which
`Prelude.Compat` was inferred as `Unsafe` by explicitly marking it as
`Trustwothy`.
[#]# Changes in 0.10.3 [2018.07.02]
- Backport the proper fixity for `($!)`, which was accidentally omitted in
`base-compat-0.10.2`.
[#]# Changes in 0.10.2 [2018.07.02]
- Sync with `base-4.12`/GHC 8.6
- Backport `RuntimeRep`-polymorphic versions of `($!)` and `throw` to
`Prelude.Compat` and `Control.Exception.Compat`, respectively
(if using `base-4.10`/GHC 8.2 or later).
- Introduce the `Data.Functor.Contravariant.Compat` module, which reexports
`Data.Functor.Contravariant` if using `base-4.12`/GHC 8.6 or later.
See `Data.Functor.Contravariant.Compat` in the corresponding
`base-compat-batteries` release for a version with a wider support window.
[#]# Changes in 0.10.1 [2018.04.10]
- Add `Data.List.NonEmpty.Compat`.
- Reexport `(Data.Semigroup.<>)` from `Data.Monoid.Compat` back to `base-4.9`.
[#]# Changes in 0.10.0 [2018.04.05]
- Sync with `base-4.11`/GHC 8.4
- Backport `Semigroup((<>))` to `Prelude.Compat`.
Note that the `Semigroup` class has only been in `base` since
`base-4.9`/GHC 8.0, so accordingly, this can only be backported back
to GHC 8.0. If you wish to have a version of `Prelude.Compat` that backports
`Semigroup` to older GHCs (by conditionally depending on the `semigroups`
library), use the `Prelude.Compat` module from the `base-compat-batteries`
package.
- Backport `(<&>)` to `Data.Functor.Compat`
- Backport `iterate'` to `Data.List.Compat`
- Backport `showHFloat` to `Numeric.Compat`
- Backport a `RuntimeRep`-polymorphic `withTypeable` function to
`Type.Reflection.Compat`. (This is only exported on `base-4.10`/GHC 8.2.)
- Introduce the following modules, back until the oldest version of `base`
that can support backporting them. If you wish to use them in conjunction
with older versions of `base`, use the `base-compat-batteries` package.
- `Control.Monad.Fail.Compat` (back until `base-4.9`/GHC 8.0)
- `Control.Monad.IO.Class.Compat` (back until `base-4.9`/GHC 8.0)
- `Data.Bifunctor` (back until `base-4.8`/GHC 7.10)
- `Data.Bifoldable` and `Data.Bitraversable` (back until `base-4.10`/GHC 8.2)
- `Data.Functor.Compose.Compat`, `Data.Functor.Product.Compat`, and
`Data.Functor.Sum.Compat` (back until `base-4.9`/GHC 8.0)
- `Data.Functor.Identity.Compat` (back until `base-4.8`/GHC 7.10)
- `Data.Semigroup.Compat` (back until `base-4.9`/GHC 8.0)
- `Data.Void.Compat` (back until `base-4.8`/GHC 7.10)
- `Numeric.Natural.Compat` (back until `base-4.8`/GHC 7.10)
- Introduce versions of modules with the suffix `.Repl`. These simply reexport
the contents of their counterparts without the `.Repl` suffix to provide
a globally unique namespace to import from in the event one wants to import
`base-compat` modules into GHCi. (In `base-compat-batteries`, the
corresponding suffix is `.Repl.Batteries`.)
- Prefer the new %license attribute over %doc.