File tree Expand file tree Collapse file tree 6 files changed +15
-9
lines changed
Expand file tree Collapse file tree 6 files changed +15
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- resolver : lts-19.31
1+ resolver : lts-19.33
Original file line number Diff line number Diff line change 1+ resolver : lts-20.26
Original file line number Diff line number Diff line change 1+ resolver : lts-21.0
Original file line number Diff line number Diff 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
8282runNamedQuery :: ExceptT PgNamedError IO [TestValue ] -> IO (Either PgNamedError TestValue )
8383runNamedQuery = fmap (second head ) . runExceptT
You can’t perform that action at this time.
0 commit comments