HStringTemplate 0.7.0 → 0.7.1
raw patch · 2 files changed
+7/−3 lines, 2 filesdep ~prettyPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: pretty
API changes (from Hackage documentation)
Files
- HStringTemplate.cabal +3/−2
- Text/StringTemplate/Base.hs +4/−1
HStringTemplate.cabal view
@@ -1,5 +1,5 @@ name: HStringTemplate-version: 0.7.0+version: 0.7.1 synopsis: StringTemplate implementation in Haskell. description: A port of the Java library by Terrence Parr. category: Text@@ -25,7 +25,8 @@ build-depends: template-haskell >= 2.3, mtl exposed-modules: Text.StringTemplate.QQ - build-depends: syb, base >= 4, base < 5, filepath, parsec < 4, containers, pretty, time, old-time, old-locale, bytestring, directory, array, text, deepseq, utf8-string, blaze-builder, void+ build-depends: syb, base >= 4, base < 5, filepath, parsec < 4, containers, pretty >= 1.1.0.0,+ time, old-time, old-locale, bytestring, directory, array, text, deepseq, utf8-string, blaze-builder, void exposed-modules: Text.StringTemplate Text.StringTemplate.Base
Text/StringTemplate/Base.hs view
@@ -417,7 +417,10 @@ getProp (p:ps) (SM mp) env = case M.lookup (stToString . showVal env $ p env) mp of Just prop -> getProp ps prop env- Nothing -> SNull+ Nothing -> case optLookup "throwException" env of+ Just _ -> C.throw . NoAttrib $ "yeek" --intercalate "." . map showIt $ (p:ps)+ Nothing -> SNull+ --where showIt x = stToString . showVal env $ x env getProp (_:_) _ _ = SNull getProp _ se _ = se