Skip to content

Commit c4b7662

Browse files
Merge pull request #42 from Holmusk/nitin/update-ghc-version
Changes include: - Update GHC versions in CI - Allow resource-pool 0.4.0.0 Co-authored-by: Jan Hrček <honza.hrk@gmail.com>
2 parents cde17de + c255c42 commit c4b7662

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
matrix:
1515
os:
1616
- ubuntu-latest
17-
cabal: [3.6]
17+
cabal: [3.10.1.0]
1818
ghc:
1919
- 8.10.7
2020
- 9.0.2
21-
- 9.2.4
22-
- 9.4.2
21+
- 9.2.8
22+
- 9.4.5
2323
services:
2424
postgres:
2525
image: postgres:15
@@ -51,15 +51,19 @@ jobs:
5151
run: cabal test --enable-tests
5252

5353
stack:
54-
name: ${{ matrix.stack-yaml }}
55-
runs-on: ubuntu-latest
54+
name: ${{ matrix.os }} / ${{ matrix.stack-yaml }}
55+
runs-on: ${{ matrix.os }}
5656
strategy:
5757
matrix:
58+
os:
59+
- ubuntu-latest
5860
stack:
59-
- 2.7.5
61+
- 2.11.1
6062
stack-yaml:
6163
- stack-8.10.7.yaml
6264
- stack-9.0.2.yaml
65+
- stack-9.2.8.yaml
66+
- stack-9.4.5.yaml
6367
services:
6468
postgres:
6569
image: postgres:15

postgresql-simple-named.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ test-suite postgresql-simple-named-test
8888
, hspec >= 2.5
8989
, postgresql-simple-named
9090
, postgresql-simple >= 0.5 && < 0.7
91-
, resource-pool ^>= 0.2.3.2
91+
, resource-pool ^>= 0.2.3.2 || ^>= 0.4.0.0
9292
, transformers
9393

9494
ghc-options: -threaded -rtsopts -with-rtsopts=-N

stack-9.0.2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-19.31
1+
resolver: lts-19.33

stack-9.2.8.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolver: lts-20.26

stack-9.4.5.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolver: lts-21.0

test/Spec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ unitTests dbPool = describe "Testing: postgresql-simple-named" $ do
7777
-> Sql.Query
7878
-> [NamedParam]
7979
-> IO (Either PgNamedError TestValue)
80-
callQuery f q params = runNamedQuery $ Pool.withResource dbPool (\conn -> f conn q params)
80+
callQuery f q params = Pool.withResource dbPool (\conn -> runNamedQuery $ f conn q params)
8181

8282
runNamedQuery :: ExceptT PgNamedError IO [TestValue] -> IO (Either PgNamedError TestValue)
8383
runNamedQuery = fmap (second head) . runExceptT

0 commit comments

Comments
 (0)