Skip to content

Commit cc8a68e

Browse files
committed
Update version bounds and fix compilation errors
1 parent 1ed328e commit cc8a68e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

esqueleto-textsearch.cabal

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ library
1818
, Database.Esqueleto.TextSearch.Language
1919
, Database.Esqueleto.TextSearch.Types
2020
build-depends: base >=4.7 && <5
21-
, esqueleto >=2.1 && <2.5
22-
, persistent >=2.1 && <2.5
23-
, persistent-postgresql >=2.1.4 && <2.5
21+
, esqueleto >=2.1 && <2.7
22+
, persistent >=2.1 && <2.9
23+
, persistent-postgresql >=2.1.4 && <2.9
2424
, text >= 1.2 && <1.3
2525
, parsec
2626
, data-default
@@ -33,6 +33,7 @@ test-suite spec
3333
ghc-options: -Wall -fwarn-incomplete-uni-patterns
3434
hs-source-dirs: test
3535
main-is: Spec.hs
36+
other-modules: Database.Esqueleto.TextSearchSpec
3637
build-depends: base
3738
, esqueleto
3839
, esqueleto-textsearch

test/Database/Esqueleto/TextSearchSpec.hs

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import Data.Text (Text, pack)
1818

1919
import Control.Monad.IO.Class (MonadIO(liftIO))
2020
import Control.Monad.Logger (MonadLogger(..), runStderrLoggingT)
21+
import Control.Monad.Trans.Control (MonadBaseControl)
2122
import Control.Monad.Trans.Resource (
22-
MonadBaseControl, MonadThrow, ResourceT, runResourceT)
23+
MonadThrow, ResourceT, runResourceT)
2324
import Database.Esqueleto (
2425
SqlExpr, Value(..), unValue, update, select, set, val, from, where_
2526
, (=.), (^.))
@@ -279,8 +280,8 @@ spec = do
279280
isEqual ((toRight . fromPersistValue . toPersistValue) q) q
280281
`shouldBe` True
281282

282-
instance Arbitrary ([NormalizationOption]) where
283-
arbitrary = (:[]) <$> elements [minBound..maxBound]
283+
instance {-# OVERLAPPING #-} Arbitrary [NormalizationOption] where
284+
arbitrary = (:[]) <$> elements [minBound..maxBound]
284285

285286
instance a ~ Lexemes => Arbitrary (TsQuery a) where
286287
arbitrary = query 0

0 commit comments

Comments
 (0)