packages feed

microstache 1.0.2 → 1.0.2.1

raw patch · 3 files changed

+13/−8 lines, 3 filesdep ~aesondep ~textdep ~transformersPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: aeson, text, transformers, vector

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+## microstache 1.0.2.1++- Support `transformers-0.6`+ ## microstache 1.0.2  - Support `aeson-2.0.0.0`
microstache.cabal view
@@ -1,5 +1,5 @@ name:               microstache-version:            1.0.2+version:            1.0.2.1 cabal-version:      >=1.10 license:            BSD3 license-file:       LICENSE@@ -38,8 +38,9 @@    || ==8.4.4    || ==8.6.5    || ==8.8.4-   || ==8.10.4-   || ==9.0.1+   || ==8.10.7+   || ==9.0.2+   || ==9.2.2  source-repository head   type:     git@@ -48,14 +49,14 @@ library   build-depends:       aeson                 >=0.11    && <1.6 || >=2.0.0.0 && <2.1-    , base                  >=4.5     && <4.16+    , base                  >=4.5     && <4.17     , containers            >=0.4.2.1 && <0.7     , deepseq               >=1.3.0.0 && <1.5     , directory             >=1.1.0.2 && <1.4     , filepath              >=1.3.0.0 && <1.5     , parsec                >=3.1.11  && <3.2-    , text                  >=1.2     && <1.3-    , transformers          >=0.3.0.0 && <0.6+    , text                  >=1.2.3.0 && <1.3 || >=2.0 && <2.1+    , transformers          >=0.3.0.0 && <0.7     , unordered-containers  >=0.2.5   && <0.3     , vector                >=0.11    && <0.13 @@ -63,7 +64,7 @@     build-depends: ghc-prim    if !impl(ghc >=8.0)-    build-depends: semigroups >=0.18 && <0.20+    build-depends: semigroups >=0.18 && <0.21    exposed-modules:     Text.Microstache
src/Text/Microstache/Parser.hs view
@@ -41,7 +41,7 @@      -- ^ File contents (Mustache template)   -> Either ParseError [Node]      -- ^ Parsed nodes or parse error-parseMustache = runParser (pMustache eof) (Delimiters "{{" "}}")+parseMustache name contents = runIdentity (runParserT (pMustache eof) (Delimiters "{{" "}}") name contents)  pMustache :: Parser () -> Parser [Node] pMustache = fmap catMaybes . manyTill (choice alts)