Update to ghc-8.6 and persistent-2.9

This commit is contained in:
Dan Burton 2018-12-06 12:29:42 -05:00 committed by Matt Parsons
parent 434f81ed41
commit 8f23eae8b9
6 changed files with 25 additions and 10 deletions

View File

@ -18,6 +18,7 @@ addons:
env: env:
- GHCVER=8.2 - GHCVER=8.2
- GHCVER=8.4 - GHCVER=8.4
- GHCVER=8.6
install: install:
- export STACK_YAML=stack-$GHCVER.yaml - export STACK_YAML=stack-$GHCVER.yaml

View File

@ -1,8 +1,10 @@
-- This file has been generated from package.yaml by hpack version 0.20.0. cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.31.0.
-- --
-- see: https://github.com/sol/hpack -- see: https://github.com/sol/hpack
-- --
-- hash: 34b1b8836c9ae7acb038d0e808674ddb4c2ab696d37e5b117f61acad02ed6daf -- hash: e6538d431870626b3bae78c5b1550ed237765c220c20c8eecd207e4dcd901a16
name: esqueleto name: esqueleto
version: 2.6.0 version: 2.6.0
@ -22,7 +24,6 @@ copyright: (c) 2012-2016 Felipe Almeida Lessa
license: BSD3 license: BSD3
license-file: LICENSE license-file: LICENSE
build-type: Simple build-type: Simple
cabal-version: >= 1.10
source-repository head source-repository head
type: git type: git
@ -37,7 +38,7 @@ library
, bytestring , bytestring
, conduit >=1.3 , conduit >=1.3
, monad-logger , monad-logger
, persistent >=2.8.0 && <2.9 , persistent >=2.8.0 && <2.10
, resourcet >=1.2 , resourcet >=1.2
, tagged >=0.2 , tagged >=0.2
, text >=0.11 && <1.3 , text >=0.11 && <1.3
@ -78,7 +79,7 @@ test-suite mysql
, monad-logger , monad-logger
, mysql , mysql
, mysql-simple , mysql-simple
, persistent >=2.8.0 && <2.9 , persistent >=2.8.0 && <2.10
, persistent-mysql , persistent-mysql
, persistent-template , persistent-template
, resourcet >=1.2 , resourcet >=1.2
@ -108,7 +109,7 @@ test-suite postgresql
, esqueleto , esqueleto
, hspec , hspec
, monad-logger , monad-logger
, persistent >=2.8.0 && <2.9 , persistent >=2.8.0 && <2.10
, persistent-postgresql , persistent-postgresql
, persistent-template , persistent-template
, postgresql-libpq , postgresql-libpq
@ -140,7 +141,7 @@ test-suite sqlite
, esqueleto , esqueleto
, hspec , hspec
, monad-logger , monad-logger
, persistent >=2.8.0 && <2.9 , persistent >=2.8.0 && <2.10
, persistent-sqlite , persistent-sqlite
, persistent-template , persistent-template
, resourcet >=1.2 , resourcet >=1.2

View File

@ -48,7 +48,7 @@ dependencies:
- bytestring - bytestring
- conduit >=1.3 - conduit >=1.3
- monad-logger - monad-logger
- persistent >=2.8.0 && <2.9 - persistent >=2.8.0 && <2.10
- resourcet >=1.2 - resourcet >=1.2
- tagged >=0.2 - tagged >=0.2
- text >=0.11 && <1.3 - text >=0.11 && <1.3

View File

@ -5,5 +5,5 @@ packages:
extra-deps: extra-deps:
- persistent-postgresql-2.8.2.0 - persistent-postgresql-2.8.2.0
- postgresql-simple-0.5.3.0 - postgresql-simple-0.5.4.0
allow-newer: true allow-newer: true

5
stack-8.6.yaml Normal file
View File

@ -0,0 +1,5 @@
# TODO: switch resolver to lts-13.x once that is released
resolver: nightly-2018-12-05
packages:
- '.'

View File

@ -1,6 +1,7 @@
{-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-deprecations #-} {-# OPTIONS_GHC -fno-warn-deprecations #-}
{-# LANGUAGE ConstraintKinds {-# LANGUAGE ConstraintKinds
, CPP
, EmptyDataDecls , EmptyDataDecls
, FlexibleContexts , FlexibleContexts
, FlexibleInstances , FlexibleInstances
@ -49,6 +50,9 @@ module Common.Test
) where ) where
import Control.Monad (forM_, replicateM, replicateM_, void) import Control.Monad (forM_, replicateM, replicateM_, void)
#if __GLASGOW_HASKELL__ >= 806
import Control.Monad.Fail (MonadFail)
#endif
import Control.Monad.IO.Class (MonadIO(liftIO)) import Control.Monad.IO.Class (MonadIO(liftIO))
import Control.Monad.Logger (MonadLogger (..), NoLoggingT, runNoLoggingT) import Control.Monad.Logger (MonadLogger (..), NoLoggingT, runNoLoggingT)
import Control.Monad.Trans.Reader (ReaderT) import Control.Monad.Trans.Reader (ReaderT)
@ -1401,7 +1405,11 @@ type RunDbMonad m = ( MonadUnliftIO m
, MonadLogger m , MonadLogger m
, MonadThrow m ) , MonadThrow m )
type Run = forall a. (forall m. RunDbMonad m => SqlPersistT (R.ResourceT m) a) -> IO a #if __GLASGOW_HASKELL__ >= 806
type Run = forall a. (forall m. (RunDbMonad m, MonadFail m) => SqlPersistT (R.ResourceT m) a) -> IO a
#else
type Run = forall a. (forall m. (RunDbMonad m) => SqlPersistT (R.ResourceT m) a) -> IO a
#endif
type WithConn m a = RunDbMonad m => (SqlBackend -> R.ResourceT m a) -> m a type WithConn m a = RunDbMonad m => (SqlBackend -> R.ResourceT m a) -> m a