dep-t 0.1.1.0 → 0.1.2.0
raw patch · 3 files changed
+12/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- dep-t.cabal +1/−1
- lib/Control/Monad/Dep.hs +7/−2
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for dep-t +## 0.1.2.0 + +* re-exported Control.Monad.Reader.Class + ## 0.1.1.0 * Added NilEnv.
dep-t.cabal view
@@ -1,7 +1,7 @@ cabal-version: 3.0 name: dep-t -version: 0.1.1.0 +version: 0.1.2.0 synopsis: Reader-like monad transformer for dependency injection. description: Put all your functions in the environment record! Let all your functions read from the environment record! No favorites!
lib/Control/Monad/Dep.hs view
@@ -20,12 +20,16 @@ -- There's no analogue of 'mapReaderT' however. This means you can't tweak -- the monad below the 'DepT' with a natural transformation. module Control.Monad.Dep - ( DepT (DepT), + ( + -- * The DepT transformer + DepT (DepT), runDepT, toReaderT, withDepT, zoomEnv, - NilEnv(NilEnv) + NilEnv(NilEnv), + -- * MonadReader re-exports + module Control.Monad.Reader.Class ) where @@ -34,6 +38,7 @@ import Control.Monad.Error.Class import Control.Monad.IO.Unlift import Control.Monad.Reader +import Control.Monad.Reader.Class import Control.Monad.State.Class import Control.Monad.Trans.Class import Control.Monad.Trans.Identity