Skip to content

Commit

Permalink
Backport instances introduced in base-4.21
Browse files Browse the repository at this point in the history
Fixes #73.
  • Loading branch information
RyanGlScott committed Dec 3, 2024
1 parent fe07cb1 commit a621449
Show file tree
Hide file tree
Showing 7 changed files with 448 additions and 28 deletions.
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

0 comments on commit a621449

Please sign in to comment.