File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
Expand file tree Collapse file tree 3 files changed +2
-5
lines changed 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 11resolver : lts-21.0
2-
3- extra-deps :
4- - resource-pool-0.2.3.2@sha256:0955486bc1db37e4eb27acb964185f9e9cb8ad5ce054c85e1e6fd7562b2d7542,1375
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