Skip to content

Commit 01b7ef8

Browse files
committed
Allow resource-pool 0.4.0.0
1 parent 8e40e62 commit 01b7ef8

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

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.4.5.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
resolver: lts-21.0
2-
3-
extra-deps:
4-
- resource-pool-0.2.3.2@sha256:0955486bc1db37e4eb27acb964185f9e9cb8ad5ce054c85e1e6fd7562b2d7542,1375

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)