Make the tests compatible with the rerebase 1.11

This commit is contained in:
Nikita Volkov 2021-03-24 16:41:07 +03:00
parent 8f51c36dfc
commit fb5b48c46a
4 changed files with 5 additions and 3 deletions

View File

@ -83,6 +83,7 @@ test-suite tasty
Main.Statements Main.Statements
Main.Prelude Main.Prelude
build-depends: build-depends:
contravariant-extras >=0.3.5.2 && <0.4,
hasql, hasql,
QuickCheck >=2.8.1 && <3, QuickCheck >=2.8.1 && <3,
quickcheck-instances >=0.3.11 && <0.4, quickcheck-instances >=0.3.11 && <0.4,
@ -107,7 +108,7 @@ test-suite threads-test
"-with-rtsopts=-N" "-with-rtsopts=-N"
build-depends: build-depends:
hasql, hasql,
rebase rerebase
benchmark benchmarks benchmark benchmarks
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0

View File

@ -6,6 +6,7 @@ import Test.Tasty
import Test.Tasty.Runners import Test.Tasty.Runners
import Test.Tasty.HUnit import Test.Tasty.HUnit
import Test.Tasty.QuickCheck import Test.Tasty.QuickCheck
import Contravariant.Extras
import qualified Test.QuickCheck as QuickCheck import qualified Test.QuickCheck as QuickCheck
import qualified Main.Statements as Statements import qualified Main.Statements as Statements
import qualified Main.DSL as DSL import qualified Main.DSL as DSL

View File

@ -1,6 +1,6 @@
module Main where module Main where
import Rebase.Prelude import Prelude
import qualified Hasql.Connection import qualified Hasql.Connection
import qualified Hasql.Statement import qualified Hasql.Statement
import qualified Hasql.Encoders import qualified Hasql.Encoders

View File

@ -1,6 +1,6 @@
module Main.Statements where module Main.Statements where
import Rebase.Prelude import Prelude
import Hasql.Statement import Hasql.Statement
import qualified Hasql.Encoders as E import qualified Hasql.Encoders as E
import qualified Hasql.Decoders as D import qualified Hasql.Decoders as D