microstache 1.0.1 → 1.0.1.1
raw patch · 3 files changed
+16/−1 lines, 3 filesdep ~aesondep ~basedep ~containersPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: aeson, base, containers, semigroups, transformers
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- microstache.cabal +1/−1
- src/Text/Microstache/Render.hs +11/−0
CHANGELOG.md view
@@ -1,3 +1,7 @@+## microstache 1.0.1.1++- Fix build against `transformers-0.3`+ ## microstache 1.0.1 - Add `renderMustacheW`
microstache.cabal view
@@ -1,5 +1,5 @@ name: microstache-version: 1.0.1+version: 1.0.1.1 cabal-version: >= 1.10 license: BSD3 license-file: LICENSE
src/Text/Microstache/Render.hs view
@@ -19,7 +19,11 @@ import Control.Monad (when, forM_, unless) import Control.Monad.Trans.Reader (ReaderT (..), asks, local)+#if MIN_VERSION_transformers(0,4,0) import Control.Monad.Trans.State.Strict (State, modify', execState)+#else+import Control.Monad.Trans.State.Strict (State, get, put, execState)+#endif import Control.Monad.Trans.Class (lift) import Data.Aeson (Value (..), encode) import Data.Monoid (mempty)@@ -41,6 +45,13 @@ #if !MIN_VERSION_base(4,8,0) import Control.Applicative+#endif++#if !(MIN_VERSION_transformers(0,4,0))+modify' :: (s -> s) -> State s ()+modify' f = do+ s <- get+ put $! f s #endif ----------------------------------------------------------------------------