Skip to content

Commit 3aa43dd

Browse files
committed
Drop support for pre-8.0 versions of GHC
Unfortunately, it is no longer possible to reasonably test versions of GHC prior to 8.0 on modern versions of Linux, macOS, or Windows, as these versions of GHC all run into subtle OS incompatibility issues. While we could leave all of the old, pre-8.0 code paths around in `base-orphans`, this runs the risk of bitrotting very quickly. As such, I have opted to remove these code paths here. Given that GHC 7.10.3 was released nearly a decade ago, I believe that the risk of breaking anyone's workflows by doing this is very minimal. (It's somewhat unfortunate that we have to drop compatibility like this in an explicitly compatibility-oriented library like `base-orphans`, but so be it.)
1 parent 4cd78b4 commit 3aa43dd

File tree

11 files changed

+130
-1797
lines changed

11 files changed

+130
-1797
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 31 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGES.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Changes in next [????.??.??]
2+
- Drop support for pre-8.0 versions of GHC.
3+
14
## Changes in 0.9.2 [2024.04.30]
25
- Backport new instances from GHC 9.10/`base-4.20`:
36
* `Fractional`, `RealFrac`, `Floating`, and `RealFloat` instances for `Compose`

README.markdown

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ To use `base-orphans`, simply `import Data.Orphans ()`.
118118
* `ghc-8.4.*` / `base-4.11.*`
119119
* `ghc-8.2.*` / `base-4.10.*`
120120
* `ghc-8.0.*` / `base-4.9.*`
121-
* `ghc-7.10.*` / `base-4.8.*`
122-
* `ghc-7.8.*` / `base-4.7.*`
123-
* `ghc-7.6.*` / `base-4.6.*`
124-
* `ghc-7.4.*` / `base-4.5.*`
125-
* `ghc-7.2.*` / `base-4.4.*`
126-
* `ghc-7.0.*` / `base-4.3.*`
127121

128122
We also make an attempt to keep `base-orphans` building with GHC HEAD, but due
129123
to its volatility, it may not work at any given point in time. If it doesn't,

base-orphans.cabal

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cabal.haskell-ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
distribution: bionic
1+
distribution: jammy
22
no-tests-no-benchmarks: False
33
unconstrained: False
44
local-ghc-options: -Werror

package.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@ description: |
2727
See also the
2828
<https://github.com/haskell-compat/base-orphans#what-is-not-covered what is not covered>
2929
section.
30-
tested-with: GHC == 7.0.4
31-
, GHC == 7.2.2
32-
, GHC == 7.4.2
33-
, GHC == 7.6.3
34-
, GHC == 7.8.4
35-
, GHC == 7.10.3
36-
, GHC == 8.0.2
30+
tested-with: GHC == 8.0.2
3731
, GHC == 8.2.2
3832
, GHC == 8.4.4
3933
, GHC == 8.6.5
@@ -42,7 +36,7 @@ tested-with: GHC == 7.0.4
4236
, GHC == 9.0.2
4337
, GHC == 9.2.8
4438
, GHC == 9.4.8
45-
, GHC == 9.6.5
39+
, GHC == 9.6.6
4640
, GHC == 9.8.2
4741
, GHC == 9.10.1
4842

@@ -55,7 +49,7 @@ github: haskell-compat/base-orphans
5549
ghc-options: -Wall
5650

5751
dependencies:
58-
- base >= 4.3 && < 5
52+
- base >= 4.9 && < 5
5953

6054
library:
6155
source-dirs: src

0 commit comments

Comments
 (0)