Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
- "9.2"
- "9.4"
- "9.6"
# - "9.8"
- "9.8"
- "9.10"
# - "9.12"
- "9.12"

env:
CONFIG: "--enable-tests --enable-benchmarks"
Expand All @@ -73,7 +73,7 @@ jobs:
with:
mongodb-version: '5.0'
- name: Start Redis
uses: supercharge/[email protected]
uses: shogo82148/actions-setup-redis@v1
- run: sudo apt-get update && sudo apt-get install -y libpcre3-dev
- run: cabal v2-update
- run: cabal v2-freeze $CONFIG
Expand Down
32 changes: 20 additions & 12 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
packages:
persistent
persistent-sqlite
persistent-test
persistent-mongoDB
persistent-mysql
persistent-postgresql
persistent-redis
persistent-qq
persistent
persistent-sqlite
persistent-test
persistent-mongoDB
persistent-mysql
persistent-postgresql
persistent-redis
persistent-qq

-- required by nix.
package postgresql-libpq
flags: +use-pkg-config
flags: +use-pkg-config

constraints:
-- https://github.com/mongodb-haskell/mongodb/pull/152
mongoDB < 2.7.1.3
allow-newer:
-- https://github.com/fizruk/http-api-data/pull/146
http-api-data:base
, postgresql-simple:base
, postgresql-simple:template-haskell
, bytestring-lexing:base

source-repository-package
type: git
location: https://github.com/parsonsmatt/mysql
tag: 1e7dc274bf9a2919c9dd4298ed46c1bd1a1b677d

-- Needed to test that `persistent-redis` works with mtl-2.3
-- https://github.com/informatikr/hedis/pull/190
Expand Down
4 changes: 2 additions & 2 deletions persistent-test/src/DataTypeTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ specsWith runDb mmigration checks apprxChecks doubleFn = describe "data type spe
key <- insert x
Just y <- get key
liftIO $ do
let check :: (Eq a, Show a) => String -> (entity -> a) -> IO ()
let check :: (Eq a, Show a, HasCallStack) => String -> (entity -> a) -> IO ()
check s f = (s, f x) @=? (s, f y)
-- Check floating-point near equality
let check' :: (Fractional p, Show p, Real p) => String -> (entity -> p) -> IO ()
let check' :: (Fractional p, Show p, Real p, HasCallStack) => String -> (entity -> p) -> IO ()
check' s f
| abs (f x - f y) < 0.000001 = return ()
| otherwise = (s, f x) @=? (s, f y)
Expand Down
5 changes: 4 additions & 1 deletion persistent/bench/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ instance NFData DerivStrategy where
instance NFData DerivClause where
#endif

#if MIN_VERSION_template_haskell(2,22,0)
#if MIN_VERSION_template_haskell(2,21,0)
instance NFData BndrVis where
#endif

#if MIN_VERSION_template_haskell(2,22,0)
instance NFData NamespaceSpecifier where
#endif

Expand Down
8 changes: 4 additions & 4 deletions persistent/persistent.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ library
, resourcet >=1.1.10
, scientific
, silently
, template-haskell >=2.13 && <2.23
, template-haskell >=2.13 && <2.24
, text >=1.2
, th-lift-instances >=0.1.14 && <0.2
, time >=1.6
Expand Down Expand Up @@ -110,13 +110,13 @@ library

-- These modules only make sense for compilers with access to DerivingVia
if impl(ghc >=8.6.1)
exposed-modules: Database.Persist.Compatible
exposed-modules: Database.Persist.Compatible
other-modules:
Database.Persist.Compatible.TH
Database.Persist.Compatible.Types

ghc-options: -Wall -Werror=incomplete-patterns
default-language: Haskell2010
ghc-options: -Wall -Werror=incomplete-patterns
default-language: Haskell2010

test-suite test
type: exitcode-stdio-1.0
Expand Down
Loading