graphula 2.0.2.1 → 2.0.2.2
raw patch · 3 files changed
+35/−26 lines, 3 filesdep ~HUnitdep ~QuickCheckdep ~containersPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: HUnit, QuickCheck, containers, directory, generic-arbitrary, generics-eot, hspec, markdown-unlit, monad-logger, mtl, persistent, persistent-sqlite, persistent-template, random, resourcet, semigroups, temporary, text, transformers, unliftio, unliftio-core
API changes (from Hackage documentation)
- Graphula.Class: type family Logging m :: Type -> Constraint;
- Graphula.Dependencies: type family KeySource a :: KeySourceType;
- Graphula.Key: type family Keys a
+ Graphula: type Logging m :: Type -> Constraint;
+ Graphula.Class: type Logging m :: Type -> Constraint;
+ Graphula.Key: type Keys a
+ Graphula.Logged: instance Control.Monad.IO.Unlift.MonadUnliftIO m => Control.Monad.IO.Unlift.MonadUnliftIO (Graphula.Logged.GraphulaLoggedT m)
- Graphula: type family Logging m :: Type -> Constraint;
+ Graphula: type family GraphulaContext (m :: Type -> Type) (ts :: [Type]) :: Constraint
Files
- CHANGELOG.md +4/−0
- graphula.cabal +26/−26
- src/Graphula/Logged.hs +5/−0
CHANGELOG.md view
@@ -2,6 +2,10 @@ None +## [v2.0.2.2](https://github.com/freckle/graphula/compare/v2.0.2.1...v2.0.2.2)++- Add missing MonadUnliftIO instance to GraphulaLoggedT+ ## [v2.0.2.1](https://github.com/freckle/graphula/compare/v2.0.1.1...v2.0.2.1) - Support persistent-2.14
graphula.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.12 name: graphula-version: 2.0.2.1+version: 2.0.2.2 license: MIT license-file: LICENSE maintainer: Freckle Education@@ -45,20 +45,20 @@ -Wno-missing-import-lists -Wno-safe -Wno-unsafe build-depends:- HUnit >=1.6.0.0,- QuickCheck >=2.11.3,+ HUnit,+ QuickCheck, base >=4.11.1.0 && <5,- containers >=0.5.11.0,- directory >=1.3.1.5,- generics-eot >=0.4,- mtl >=2.2.2,- persistent >=2.8.2,- random >=1.1,- semigroups >=0.18.5,- temporary >=1.3,- text >=1.2.3.1,- unliftio >=0.2.9.0,- unliftio-core >=0.1.2.0+ containers,+ directory,+ generics-eot,+ mtl,+ persistent,+ random,+ semigroups,+ temporary,+ text,+ unliftio,+ unliftio-core if impl(ghc >=9.2) ghc-options: -Wno-missing-kind-signatures@@ -82,18 +82,18 @@ markdown-unlit build-depends:- QuickCheck >=2.11.3,+ QuickCheck, base >=4.11.1.0 && <5,- generic-arbitrary >=0.1.0,- graphula -any,- hspec >=2.5.5,- markdown-unlit >=0.5.0,- monad-logger >=0.3.30,- persistent >=2.8.2,- persistent-sqlite >=2.8.2,- resourcet >=1.2.2,- transformers >=0.5.5.0,- unliftio-core >=0.1.2.0+ generic-arbitrary,+ graphula,+ hspec,+ markdown-unlit,+ monad-logger,+ persistent,+ persistent-sqlite,+ resourcet,+ transformers,+ unliftio-core if impl(ghc >=9.2) ghc-options: -Wno-missing-kind-signatures@@ -109,4 +109,4 @@ ghc-options: -Wno-missing-deriving-strategies if flag(persistent-template)- build-depends: persistent-template >=2.5.4+ build-depends: persistent-template
src/Graphula/Logged.hs view
@@ -53,6 +53,11 @@ , MonadReader (IORef (Seq Text)) ) +instance MonadUnliftIO m => MonadUnliftIO (GraphulaLoggedT m) where+ {-# INLINE withRunInIO #-}+ withRunInIO inner =+ GraphulaLoggedT $ withRunInIO $ \run -> inner $ run . runGraphulaLoggedT'+ instance MonadTrans GraphulaLoggedT where lift = GraphulaLoggedT . lift