Skip to content

Commit

Permalink
Remove contravariant-extras from test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Jun 17, 2024
1 parent 6b63987 commit 9725220
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions conflicts-test/Main/Statements.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Main.Statements where

import Contravariant.Extras
import Hasql.Decoders qualified as D
import Hasql.Encoders qualified as E
import Hasql.Statement
Expand Down Expand Up @@ -33,7 +32,7 @@ modifyBalance :: Statement (Int64, Scientific) Bool
modifyBalance =
Statement
"update account set balance = balance + $2 where id = $1"
(contrazip2 ((E.param . E.nonNullable) E.int8) ((E.param . E.nonNullable) E.numeric))
((fst >$< (E.param . E.nonNullable) E.int8) <> (snd >$< (E.param . E.nonNullable) E.numeric))
(fmap (> 0) D.rowsAffected)
True

Expand Down
1 change: 0 additions & 1 deletion hasql-transaction.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ test-suite conflicts-test

build-depends:
async >=2.1 && <3,
contravariant-extras >=0.3 && <0.4,
hasql,
hasql-transaction,
rerebase >=1.11 && <2,

0 comments on commit 9725220

Please sign in to comment.