sydtest-persistent-sqlite 0.2.0.0 → 0.2.0.1
raw patch · 4 files changed
+26/−6 lines, 4 filesdep −persistent-templatePVP ok
version bump matches the API change (PVP)
Dependencies removed: persistent-template
API changes (from Hackage documentation)
Files
- CHANGELOG.md +17/−0
- src/Test/Syd/Persistent/Sqlite.hs +2/−1
- sydtest-persistent-sqlite.cabal +6/−5
- test/Test/Syd/Persistent/Example.hs +1/−0
+ CHANGELOG.md view
@@ -0,0 +1,17 @@+# Changelog++## [0.2.0.1] - 2022-04-26++### Added++* Compatibility with `GHC >= 9`++## [0.2.0.0] - 2021-06-19++### Added++* Dependency on `sydtest-persistent`++### Changed++* Type of `runSqliteTest` is changed to run `SqlPersistM` instead of `SqlPersistT IO`
src/Test/Syd/Persistent/Sqlite.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RankNTypes #-} -- | Testing with an in-memory sqlite database using persistent-sqlite module Test.Syd.Persistent.Sqlite@@ -51,7 +52,7 @@ -- | Set up a sqlite connection and migrate it to run the given function. withConnectionPool :: Migration -> (ConnectionPool -> IO r) -> IO r-withConnectionPool = unSetupFunc . connectionPoolSetupFunc+withConnectionPool migration func = unSetupFunc (connectionPoolSetupFunc migration) func -- | The 'SetupFunc' version of 'withConnectionPool'. connectionPoolSetupFunc :: Migration -> SetupFunc ConnectionPool
sydtest-persistent-sqlite.cabal view
@@ -1,21 +1,24 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.4.+-- This file has been generated from package.yaml by hpack version 0.34.7. -- -- see: https://github.com/sol/hpack name: sydtest-persistent-sqlite-version: 0.2.0.0+version: 0.2.0.1 synopsis: A persistent-sqlite companion library for sydtest category: Testing homepage: https://github.com/NorfairKing/sydtest#readme bug-reports: https://github.com/NorfairKing/sydtest/issues author: Tom Sydney Kerckhove maintainer: syd@cs-syd.eu-copyright: Copyright (c) 2020-2021 Tom Sydney Kerckhove+copyright: Copyright (c) 2020-2022 Tom Sydney Kerckhove license: OtherLicense license-file: LICENSE.md build-type: Simple+extra-source-files:+ LICENSE.md+ CHANGELOG.md source-repository head type: git@@ -34,7 +37,6 @@ , mtl , persistent , persistent-sqlite- , persistent-template , sydtest , sydtest-persistent default-language: Haskell2010@@ -55,7 +57,6 @@ base >=4.7 && <5 , persistent , persistent-sqlite- , persistent-template , sydtest , sydtest-persistent-sqlite default-language: Haskell2010
test/Test/Syd/Persistent/Example.hs view
@@ -12,6 +12,7 @@ {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-} module Test.Syd.Persistent.Example where