From 80e659b51cbe316b088fa51e0a31e3636b2b9c74 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 2 Sep 2025 09:56:16 +0100 Subject: [PATCH] ;pkg: bump minimum supported GHC from 8.10.7 to 9.6 (and base 4.18) System.IO.hGetContents' was the latest paper cut; I could keep supporting ghc 8.10.7, or at least 9.0-9.4, released 2021-2023; but feck it. Debian Stable has 9.6 and this time can be better spent. --- .github/workflows/oldest.yml | 4 ++-- hledger-lib/package.yaml | 4 ++-- hledger-ui/package.yaml | 4 ++-- hledger-web/package.yaml | 4 ++-- hledger/package.yaml | 4 ++-- stack810.yaml => stack810.yaml.old | 2 ++ stack90.yaml => stack90.yaml.old | 2 ++ stack92.yaml => stack92.yaml.old | 2 ++ stack94.yaml => stack94.yaml.old | 2 ++ 9 files changed, 18 insertions(+), 10 deletions(-) rename stack810.yaml => stack810.yaml.old (90%) rename stack90.yaml => stack90.yaml.old (90%) rename stack92.yaml => stack92.yaml.old (87%) rename stack94.yaml => stack94.yaml.old (86%) diff --git a/.github/workflows/oldest.yml b/.github/workflows/oldest.yml index fc26cf5d9..006c32a84 100644 --- a/.github/workflows/oldest.yml +++ b/.github/workflows/oldest.yml @@ -17,8 +17,8 @@ jobs: # image: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md env: - stack: stack --stack-yaml=stack810.yaml - ghc: 8.10.7 + stack: stack --stack-yaml=stack96.yaml + ghc: 9.6.6 steps: diff --git a/hledger-lib/package.yaml b/hledger-lib/package.yaml index b326c40f7..06a8606d7 100644 --- a/hledger-lib/package.yaml +++ b/hledger-lib/package.yaml @@ -4,7 +4,7 @@ license: GPL-3.0-or-later maintainer: Simon Michael author: Simon Michael stability: stable -tested-with: ghc==8.10.7, ghc==9.0.2, ghc==9.2.8, ghc==9.4.8, ghc==9.6.7, ghc==9.8.4, ghc==9.10.2, ghc==9.12.2 +tested-with: ghc==9.6.7, ghc==9.8.4, ghc==9.10.2, ghc==9.12.2 homepage: http://hledger.org bug-reports: http://bugs.hledger.org github: simonmichael/hledger @@ -46,7 +46,7 @@ flags: # manual: true dependencies: -- base >=4.14 && <4.22 +- base >=4.18 && <4.22 - aeson >=1 && <2.3 - aeson-pretty - ansi-terminal >=0.9 diff --git a/hledger-ui/package.yaml b/hledger-ui/package.yaml index 706c280c5..0f4390fe0 100644 --- a/hledger-ui/package.yaml +++ b/hledger-ui/package.yaml @@ -4,7 +4,7 @@ license: GPL-3.0-or-later maintainer: Simon Michael author: Simon Michael stability: stable -tested-with: ghc==8.10.7, ghc==9.0.2, ghc==9.2.8, ghc==9.4.8, ghc==9.6.7, ghc==9.8.4, ghc==9.10.2, ghc==9.12.2 +tested-with: ghc==9.6.7, ghc==9.8.4, ghc==9.10.2, ghc==9.12.2 homepage: http://hledger.org bug-reports: http://bugs.hledger.org github: simonmichael/hledger @@ -75,7 +75,7 @@ when: # - ghc-debug-stub >=0.6.0.0 && <0.7 dependencies: -- base >=4.14 && <4.22 +- base >=4.18 && <4.22 library: source-dirs: . diff --git a/hledger-web/package.yaml b/hledger-web/package.yaml index 538e56782..02df7c6a1 100644 --- a/hledger-web/package.yaml +++ b/hledger-web/package.yaml @@ -4,7 +4,7 @@ license: GPL-3.0-or-later maintainer: Simon Michael author: Simon Michael stability: stable -tested-with: ghc==8.10.7, ghc==9.0.2, ghc==9.2.8, ghc==9.4.8, ghc==9.6.7, ghc==9.8.4, ghc==9.10.2, ghc==9.12.2 +tested-with: ghc==9.6.7, ghc==9.8.4, ghc==9.10.2, ghc==9.12.2 homepage: http://hledger.org bug-reports: http://bugs.hledger.org github: simonmichael/hledger @@ -94,7 +94,7 @@ when: # - ghc-debug-stub >=0.6.0.0 && <0.7 dependencies: -- base >=4.14 && <4.22 +- base >=4.18 && <4.22 library: source-dirs: . diff --git a/hledger/package.yaml b/hledger/package.yaml index f465a9bda..5189c61b4 100644 --- a/hledger/package.yaml +++ b/hledger/package.yaml @@ -4,7 +4,7 @@ license: GPL-3.0-or-later maintainer: Simon Michael author: Simon Michael stability: stable -tested-with: ghc==8.10.7, ghc==9.0.2, ghc==9.2.8, ghc==9.4.8, ghc==9.6.7, ghc==9.8.4, ghc==9.10.2, ghc==9.12.2 +tested-with: ghc==9.6.7, ghc==9.8.4, ghc==9.10.2, ghc==9.12.2 homepage: http://hledger.org bug-reports: http://bugs.hledger.org github: simonmichael/hledger @@ -123,7 +123,7 @@ when: # - ghc-debug-stub >=0.6.0.0 && <0.7 dependencies: -- base >=4.14 && <4.22 +- base >=4.18 && <4.22 - hledger-lib >=1.43.99 && <1.44 - aeson >=1 && <2.3 - ansi-terminal >=0.9 diff --git a/stack810.yaml b/stack810.yaml.old similarity index 90% rename from stack810.yaml rename to stack810.yaml.old index 550a7a7f3..b4a33d725 100644 --- a/stack810.yaml +++ b/stack810.yaml.old @@ -1,4 +1,6 @@ # stack build plan using GHC 8.10.7 +# Note hledger now officially requires GHC 9.6+; +# this is here as a reference in case you are trying to build with older GHC and stack. resolver: lts-18.28 diff --git a/stack90.yaml b/stack90.yaml.old similarity index 90% rename from stack90.yaml rename to stack90.yaml.old index 6df6b6780..fabf76c23 100644 --- a/stack90.yaml +++ b/stack90.yaml.old @@ -1,4 +1,6 @@ # stack build plan using GHC 9.0.2 +# Note hledger now officially requires GHC 9.6+; +# this is here as a reference in case you are trying to build with older GHC and stack. resolver: lts-19.33 diff --git a/stack92.yaml b/stack92.yaml.old similarity index 87% rename from stack92.yaml rename to stack92.yaml.old index 865d471e4..bf39f9bf6 100644 --- a/stack92.yaml +++ b/stack92.yaml.old @@ -1,4 +1,6 @@ # stack build plan using GHC 9.2.8 +# Note hledger now officially requires GHC 9.6+; +# this is here as a reference in case you are trying to build with older GHC and stack. resolver: lts-20.26 diff --git a/stack94.yaml b/stack94.yaml.old similarity index 86% rename from stack94.yaml rename to stack94.yaml.old index 4f249776e..7d7dcf5a2 100644 --- a/stack94.yaml +++ b/stack94.yaml.old @@ -1,4 +1,6 @@ # stack build plan using GHC 9.4.8 +# Note hledger now officially requires GHC 9.6+; +# this is here as a reference in case you are trying to build with older GHC and stack. resolver: lts-21.25