Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport instances introduced in base-4.21 #76

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 54 additions & 15 deletions .github/workflows/haskell-ci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions CHANGES.markdown
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## Changes in next [????.??.??]
- Backport new instances from GHC 9.12/`base-4.21`:
* `MonadFix` instance for `(,) a`
* `Eq1`, `Ord1`, `Read1`, and `Show1` instances for basic `GHC.Generics`
representation types
* `Show` instance for `UAddr`
- Drop support for pre-8.0 versions of GHC.

## Changes in 0.9.2 [2024.04.30]
Expand Down
4 changes: 4 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ To use `base-orphans`, simply `import Data.Orphans ()`.
* `Eq` and `Ord` instances for `SChar`, `SNat`, and `SSymbol`
* `Eq1`, `Read1`, and `Show1` instances for `Complex`
* `Eq1`, `Ord1`, `Read1`, and `Show1` instances for `NonEmpty`
* `Eq1`, `Ord1`, `Read1`, and `Show1` instances for basic `GHC.Generics` representation types
* `Enum`, `Bounded`, `Num`, `Real`, `Integral`, `Fractional`, `RealFrac`, `Floating`, and `RealFloat` instances for `Compose`
* `Foldable` instance for `Either`, `(,)` and `Const`
* `Foldable` and `Traversable` instances for `Alt` from `Data.Monoid`
Expand All @@ -76,6 +77,7 @@ To use `base-orphans`, simply `import Data.Orphans ()`.
* `Monad` instance for `(,)`
* `Monad` instance for `WrappedMonad`
* `MonadFail`, `Monoid`, and `Semigroup` instances for strict `ST`
* `MonadFix` instance for `(,) a`
* `MonadFix` and `MonadZip` instances for `Complex`
* `MonadZip` instance for `Maybe`
* `Monoid`, `Eq`, `Ord`, `Read`, and `Show` instances for `Const`
Expand All @@ -87,6 +89,7 @@ To use `base-orphans`, simply `import Data.Orphans ()`.
`Monoid` instances for the same types (except `V1`).
* `Semigroup` and `Monoid` instances for `Data.Functor.Product` and `Data.Functor.Compose`
* `Show` instance for `Fingerprint`
* `Show` instance for `UAddr`
* `Storable` instance for `()`, `Complex`, and `Ratio`
* `TestEquality` instance for `Compose`
* `Traversable` instance for `Either`, `(,)` and `Const`
Expand All @@ -106,6 +109,7 @@ To use `base-orphans`, simply `import Data.Orphans ()`.

## Supported versions of GHC/`base`

* `ghc-9.12.*` / `base-4.21.*`
* `ghc-9.10.*` / `base-4.20.*`
* `ghc-9.8.*` / `base-4.19.*`
* `ghc-9.6.*` / `base-4.18.*`
Expand Down
4 changes: 2 additions & 2 deletions base-orphans.cabal

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ tested-with: GHC == 8.0.2
, GHC == 9.6.6
, GHC == 9.8.2
, GHC == 9.10.1
, GHC == 9.12.1

extra-source-files:
- CHANGES.markdown
Expand Down
Loading