Skip to content

Commit d8b96a4

Browse files
authored
Support ghc9.4 (#51)
* Support ghc9.4 * cabal: newer hlint for ghc9 * ci: disable tests on macos with ghc 9.2 only * ci: try ghc 9.2.5 instead of 9.2.2 * ci: update github cache action * Update changelog * Bump version number
1 parent 054b12f commit d8b96a4

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/haskell.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
ghc: ['8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.1', '9.2.2']
10+
ghc: ['8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.1', '9.2.5', '9.4.3']
1111
os: ['ubuntu-latest', 'macos-latest']
1212
runs-on: ${{ matrix.os }}
1313

@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
ghc-version: ${{ matrix.ghc }}
2020
- name: Cache
21-
uses: actions/cache@v1
21+
uses: actions/cache@v3
2222
env:
2323
cache-name: cache-cabal
2424
with:
@@ -31,9 +31,7 @@ jobs:
3131
${{ runner.os }}
3232
3333
- name: Install dependencies
34-
run: |
35-
cabal update
36-
cabal build --only-dependencies --enable-tests --enable-benchmarks
34+
run: cabal build --only-dependencies --enable-tests --enable-benchmarks
3735
- name: Build
3836
run: cabal build --enable-tests --enable-benchmarks all
3937
- name: Run tests

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Revision history for patch
22

3+
## 0.0.8.1
4+
5+
* Add support for GHC 9.2 and 9.4
6+
37
## 0.0.8.0 - 2022-12-09
48

59
* Drop support for GHC 8.0 and 8.2. It may still be possible to use this library with those versions of GHC, but we do not guarantee or test it anymore.

patch.cabal

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: patch
2-
Version: 0.0.8.0
2+
Version: 0.0.8.1
33
Synopsis: Data structures for describing changes to other data structures.
44
Description:
55
Data structures for describing changes to other data structures.
@@ -22,8 +22,8 @@ extra-source-files:
2222
ChangeLog.md
2323

2424
tested-with:
25-
GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.1 || ==9.2.2
26-
GHCJS ==8.4
25+
GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.1 || ==9.2.5 || ==9.4.3
26+
GHCJS ==8.6 || ==8.10
2727

2828
flag split-these
2929
description: Use split these/semialign packages
@@ -37,13 +37,13 @@ flag hlint
3737
library
3838
hs-source-dirs: src
3939
default-language: Haskell2010
40-
build-depends: base >= 4.9 && < 4.17
40+
build-depends: base >= 4.9 && < 4.18
4141
, constraints-extras >= 0.3 && < 0.5
4242
, commutative-semigroups >= 0.0 && < 0.2
4343
, containers >= 0.6 && < 0.7
4444
, dependent-map >= 0.3 && < 0.5
4545
, dependent-sum >= 0.6 && < 0.8
46-
, lens >= 4.7 && < 5.2
46+
, lens >= 4.7 && < 5.3
4747
, indexed-traversable >= 0.1 && < 0.2
4848
, semigroupoids >= 4.0 && < 6
4949
, transformers >= 0.5.6.0 && < 0.7
@@ -98,7 +98,11 @@ test-suite hlint
9898
, directory
9999
, filepath
100100
, filemanip
101-
, hlint (< 2.1 || >= 2.2.2) && < 3.5
101+
if impl(ghc < 9.2)
102+
build-depends: hlint (< 2.1 || >= 2.2.2) && < 3.5
103+
else
104+
build-depends: hlint >= 3.5 && < 3.6
105+
102106
if impl(ghcjs) || !flag(hlint)
103107
buildable: False
104108

0 commit comments

Comments
 (0)