heist 1.1.1.1 → 1.1.1.2
raw patch · 3 files changed
+28/−26 lines, 3 filesdep ~QuickCheckdep ~containersdep ~filepathPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: QuickCheck, containers, filepath, hashable, lens, random, time
API changes (from Hackage documentation)
Files
- CHANGELOG.md +9/−0
- heist.cabal +13/−10
- test/suite/Heist/Compiled/Tests.hs +6/−16
CHANGELOG.md view
@@ -1,3 +1,12 @@+# 1.1.1.2++* Support GHC 9.8+* Fix broken test++# 1.1.1.1++* Support GHC 9.6+ # 1.1.1.0 * Expose `lookupTemplate` and `splitTemplatePath`
heist.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: heist-version: 1.1.1.1+version: 1.1.1.2 synopsis: An Haskell template system supporting both HTML5 and XML. description: Heist is a powerful template system that supports both HTML5 and XML.@@ -32,16 +32,19 @@ category: Web, Snap tested-with:- GHC == 8.6.5 GHC == 8.8.4 GHC == 8.10.7 GHC == 9.0.2- GHC == 9.2.5- GHC == 9.4.4+ GHC == 9.2.8+ GHC == 9.4.7+ GHC == 9.6.3+ GHC == 9.8.1 +extra-doc-files:+ CHANGELOG.md+ extra-source-files: .ghci,- CHANGELOG.md, CONTRIBUTORS, docs/Makefile, docs/templates.css,@@ -179,12 +182,12 @@ Heist.Interpreted.Internal build-depends:- aeson >= 0.6 && < 2.2,+ aeson >= 0.6 && < 2.3, attoparsec >= 0.10 && < 0.15, blaze-builder >= 0.2 && < 0.5, blaze-html >= 0.4 && < 0.10,- bytestring >= 0.9 && < 0.12,- containers >= 0.2 && < 0.7,+ bytestring >= 0.9 && < 0.13,+ containers >= 0.2 && < 1.0, directory >= 1.1 && < 1.4, directory-tree >= 0.10 && < 0.13, dlist >= 0.5 && < 1.1,@@ -196,7 +199,7 @@ mtl >= 2.0 && < 2.4, process >= 1.1 && < 1.7, random >= 1.0.1.0 && < 1.3,- text >= 0.10 && < 2.1,+ text >= 0.10 && < 2.2, time >= 1.1 && < 1.13, transformers >= 0.3 && < 0.7, transformers-base >= 0.4 && < 0.5,@@ -231,7 +234,7 @@ test-framework-quickcheck2 >= 0.2.12.1 && < 0.4, aeson, attoparsec,- bifunctors >= 5.3 && < 5.6,+ bifunctors >= 5.3 && < 5.7, blaze-builder, blaze-html, bytestring,
test/suite/Heist/Compiled/Tests.hs view
@@ -350,24 +350,14 @@ renderTemplate hs "" _ <- lift $ fst runner throwE ["Unexpected success"])- (\(e :: CompileException) -> return $ Right- (show e, head $- exceptionContext e))-- H.assertEqual "exceptions" (Right (msg, err)) $ res+ (\(e :: CompileException) -> return $ case lines (show e) of+ l:ls -> Right l+ _ -> Left [show e])+ H.assertEqual "exceptions" (Right firstLine) res where- msg = "templates-loaderror/_error.tpl: Exception in splice compile: Prelude.read: no parse\n ... via templates-loaderror/_error.tpl: h:adder\n ... via templates-loaderror/test.tpl: h:call2\nBound splices: h:adder h:call1 h:call2\nNode: Element {elementTag = \"h:adder\", elementAttrs = [(\"value\",\"noparse\")], elementChildren = []}"- err = SpliceError [ ( ["test"]- , Just "templates-loaderror/_error.tpl"- , "h:adder"),- ( ["test"]- , Just "templates-loaderror/test.tpl"- ,"h:call2") ]- (Just "templates-loaderror/_error.tpl")- ["h:adder", "h:call1", "h:call2"]- (X.Element "h:adder" [("value", "noparse")] [])- "Exception in splice compile: Prelude.read: no parse"+ firstLine = "templates-loaderror/_error.tpl: Exception in splice compile: Prelude.read: no parse"+ hc = HeistConfig sc "h" True sc = mempty & scLoadTimeSplices .~ defaultLoadTimeSplices & scCompiledSplices .~ splices