Skip to content

Bump to Cabal 3.14 and GHC 9.12 #1391

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
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
22 changes: 0 additions & 22 deletions .github/workflows/dependabot-auto-approve.yml

This file was deleted.

44 changes: 12 additions & 32 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.19.20250330
# version: 0.19.20250506
#
# REGENDATA ("0.19.20250330",["github","hackage-server.cabal"])
# REGENDATA ("0.19.20250506",["github","hackage-server.cabal"])
#
name: Haskell-CI
on:
Expand All @@ -32,44 +32,24 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.10.1
- compiler: ghc-9.12.2
compilerKind: ghc
compilerVersion: 9.10.1
compilerVersion: 9.12.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.8.2
- compiler: ghc-9.10.2
compilerKind: ghc
compilerVersion: 9.8.2
compilerVersion: 9.10.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.6.5
- compiler: ghc-9.8.4
compilerKind: ghc
compilerVersion: 9.6.5
compilerVersion: 9.8.4
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.4.8
- compiler: ghc-9.6.7
compilerKind: ghc
compilerVersion: 9.4.8
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.2.8
compilerKind: ghc
compilerVersion: 9.2.8
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.0.2
compilerKind: ghc
compilerVersion: 9.0.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-8.10.7
compilerKind: ghc
compilerVersion: 8.10.7
setup-method: ghcup
allow-failure: false
- compiler: ghc-8.8.4
compilerKind: ghc
compilerVersion: 8.8.4
compilerVersion: 9.6.7
setup-method: ghcup
allow-failure: false
fail-fast: false
Expand All @@ -86,8 +66,8 @@ jobs:
chmod a+x "$HOME/.ghcup/bin/ghcup"
- name: Install cabal-install
run: |
"$HOME/.ghcup/bin/ghcup" install cabal 3.14.1.1-p1 || (cat "$HOME"/.ghcup/logs/*.* && false)
echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.1.1-p1 -vnormal+nowrap" >> "$GITHUB_ENV"
"$HOME/.ghcup/bin/ghcup" install cabal 3.14.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
- name: Install GHC (GHCup)
if: matrix.setup-method == 'ghcup'
run: |
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/nix-flake.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/update-flake-lock.yml

This file was deleted.

4 changes: 2 additions & 2 deletions cabal.haskell-ci
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ installed: +all -Cabal -Cabal-syntax -text -parsec -process
-- -- allow failures with ghc-7.6 and ghc-7.8
-- allow-failures: <7.9

-- Use Ubuntu 22.04
distribution: jammy
-- -- Use Ubuntu 22.04
-- distribution: jammy

apt: libbrotli-dev libgd-dev
-- libgd-dev is for gd via hs-captcha
Expand Down
31 changes: 14 additions & 17 deletions hackage-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ license: BSD-3-Clause
license-file: LICENSE

tested-with:
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 9.12.2
GHC == 9.10.2
GHC == 9.8.4
GHC == 9.6.7
-- Constraint transformers >= 0.6 forces GHC >= 9.6 for CI

data-dir: datafiles
data-files:
Expand Down Expand Up @@ -130,10 +127,10 @@ common defaults
-- see `cabal.project.local-ghc-${VERSION}` files
build-depends:
, array >= 0.5 && < 0.6
, base >= 4.13 && < 4.21
, base >= 4.18 && < 4.22
, binary >= 0.8 && < 0.9
, bytestring >= 0.10 && < 0.13
, containers >= 0.6.0 && < 0.8
, containers >= 0.6.0 && < 0.9
, deepseq >= 1.4 && < 1.6
, directory >= 1.3 && < 1.4
, filepath >= 1.4 && < 1.6
Expand All @@ -142,15 +139,15 @@ common defaults
, pretty >= 1.1 && < 1.2
, process >= 1.6 && < 1.7
, text ^>= 1.2.5.0 || >= 2.0 && < 2.2
, time >= 1.9 && < 1.13
, time >= 1.9 && < 1.15
, transformers >= 0.5 && < 0.7
, unix >= 2.7 && < 2.9
, scientific
-- other dependencies shared by most components
build-depends:
, aeson >= 2.1.0.0 && < 2.3
, Cabal >= 3.12.1.0 && < 3.14
, Cabal-syntax >= 3.12.1.0 && < 3.14
, Cabal >= 3.14.2.0 && < 3.16
, Cabal-syntax >= 3.14.2.0 && < 3.16
-- Cabal-syntax needs to be bound to constrain hackage-security
-- see https://github.com/haskell/hackage-server/issues/1130
, fail ^>= 4.9.0
Expand Down Expand Up @@ -444,12 +441,12 @@ library
-- haddock-library-1.11.0 changed type of markupOrderedList
-- see https://github.com/haskell/hackage-server/issues/1128
, happstack-server ^>= 7.7.1 || ^>= 7.8.0 || ^>= 7.9.0
, hashable ^>= 1.3 || ^>= 1.4
, hashable >= 1.3 && < 1.6
, hs-captcha ^>= 1.0
, hslogger ^>= 1.3.1
, lifted-base ^>= 0.2.1
, mime-mail ^>= 0.5
, random ^>= 1.2
, random >= 1.2 && < 1.4
, rss ^>= 3000.2.0.7
, safecopy ^>= 0.10
, semigroups ^>= 0.20
Expand All @@ -458,7 +455,7 @@ library
, stringsearch ^>= 0.3.6.6
, tagged ^>= 0.8.5
, transformers ^>= 0.6
, xhtml >= 3000.2.0.0 && < 3000.4
, xhtml >= 3000.2.0.0 && < 3000.5
, xmlgen ^>= 0.6
, xss-sanitize ^>= 0.3.6

Expand Down Expand Up @@ -600,7 +597,7 @@ test-suite ReverseDependenciesTest
, tasty-hedgehog ^>= 1.4
, tasty-hunit ^>= 0.10
, HUnit ^>= 1.6
, hedgehog ^>= 1.4
, hedgehog >= 1.4 && < 1.6
, exceptions
, bimap
, mime-mail
Expand Down
Loading