mustache 0.5.1.0 → 1.0
raw patch · 3 files changed
+50/−49 lines, 3 filesdep −ja-base-extradep ~mtldep ~parsecdep ~text
Dependencies removed: ja-base-extra
Dependency ranges changed: mtl, parsec, text
Files
- LICENSE +1/−1
- mustache.cabal +48/−46
- src/lib/Text/Mustache/Compile.hs +1/−2
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2015, Justus Adam+Copyright (c) 2015, 2016 Justus Adam All rights reserved.
mustache.cabal view
@@ -1,5 +1,5 @@ name: mustache-version: 0.5.1.0+version: 1.0 synopsis: A mustache template parser library. description: Allows parsing and rendering template files with mustache markup. See the@@ -14,7 +14,7 @@ maintainer: dev@justus.science homepage: https://github.com/JustusAdam/mustache bug-reports: https://github.com/JustusAdam/mustache/issues-copyright: (c) 2015 Justus Adam+copyright: (c) 2015, 2016 Justus Adam category: Development build-type: Simple extra-source-files: README.md CHANGELOG.md@@ -30,22 +30,25 @@ type: git branch: master location: git://github.com/JustusAdam/mustache.git- tag: v0.5.1.0rc-7+ tag: v1.0 library- exposed-modules: Text.Mustache,- Text.Mustache.Types,- Text.Mustache.Parser,- Text.Mustache.Compile,- Text.Mustache.Render+ exposed-modules: Text.Mustache+ , Text.Mustache.Types+ , Text.Mustache.Parser+ , Text.Mustache.Compile+ , Text.Mustache.Render other-modules: Text.Mustache.Internal- other-extensions: NamedFieldPuns, OverloadedStrings, LambdaCase, TupleSections+ other-extensions: NamedFieldPuns+ , OverloadedStrings+ , LambdaCase+ , TupleSections build-depends: base >=4.7 && <5- , text >=1.2 && <1.3- , parsec >=3.1 && <3.2- , mtl >=2.2 && <2.3+ , text+ , parsec+ , mtl >= 2.2.1 , either , aeson , unordered-containers@@ -55,7 +58,6 @@ , filepath , scientific , base-unicode-symbols- , ja-base-extra >= 0.2.1 , containers hs-source-dirs: src/lib default-language: Haskell2010@@ -65,15 +67,15 @@ executable haskell-mustache main-is: Main.hs- build-depends: base >=4.7 && <5,- mustache,- bytestring,- yaml,- aeson,- cmdargs,- text,- filepath,- base-unicode-symbols+ build-depends: base >=4.7 && <5+ , mustache+ , bytestring+ , yaml+ , aeson+ , cmdargs+ , text+ , filepath+ , base-unicode-symbols default-language: Haskell2010 hs-source-dirs: src/bin @@ -81,18 +83,18 @@ test-suite unit-tests main-is: Spec.hs type: exitcode-stdio-1.0- build-depends: base >=4.7 && <5,- hspec,- text,- mustache,- aeson,- unordered-containers,- yaml,- filepath,- process,- temporary,- directory,- base-unicode-symbols+ build-depends: base >=4.7 && <5+ , hspec+ , text+ , mustache+ , aeson+ , unordered-containers+ , yaml+ , filepath+ , process+ , temporary+ , directory+ , base-unicode-symbols hs-source-dirs: test/unit default-language: Haskell2010 @@ -100,17 +102,17 @@ test-suite language-specifications main-is: Language.hs type: exitcode-stdio-1.0- build-depends: base >=4.7 && <5,- hspec,- text,- mustache,- aeson,- unordered-containers,- yaml,- filepath,- process,- temporary,- directory,- base-unicode-symbols+ build-depends: base >=4.7 && <5+ , hspec+ , text+ , mustache+ , aeson+ , unordered-containers+ , yaml+ , filepath+ , process+ , temporary+ , directory+ , base-unicode-symbols hs-source-dirs: test/integration default-language: Haskell2010
src/lib/Text/Mustache/Compile.hs view
@@ -21,7 +21,6 @@ import Control.Monad.Trans.Either import Control.Monad.Unicode import Data.Bool-import Data.Function.JAExtra import Data.HashMap.Strict as HM import Data.Monoid.Unicode ((∅)) import Data.Text hiding (concat, find, map, uncons)@@ -122,7 +121,7 @@ flattenPartials ∷ TemplateCache → TemplateCache-flattenPartials = stuffWith $ foldrWithKey $ insertWith discard+flattenPartials m = foldrWithKey (insertWith (\_ b -> b)) m m {-|