packages feed

hamlet 1.1.7.3 → 1.1.7.4

raw patch · 3 files changed

+13/−1 lines, 3 filesdep ~template-haskell

Dependency ranges changed: template-haskell

Files

Text/Hamlet.hs view
@@ -49,7 +49,11 @@  import Text.Shakespeare.Base import Text.Hamlet.Parse+#if MIN_VERSION_template_haskell(2,9,0)+import Language.Haskell.TH.Syntax hiding (Module)+#else import Language.Haskell.TH.Syntax+#endif import Language.Haskell.TH.Quote import Data.Char (isUpper, isDigit) import Data.Maybe (fromMaybe)
hamlet.cabal view
@@ -1,5 +1,5 @@ name:            hamlet-version:         1.1.7.3+version:         1.1.7.4 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>
test/HamletTest.hs view
@@ -455,6 +455,14 @@         helper "<i>foo</i>\n" [hamlet|<i :False:.not-present :False:.also-not-here>foo|]
     it "optional and present classes" $
         helper "<i class=\"present\">foo</i>\n" [hamlet|<i :False:.not-present :True:.present>foo|]
+    it "punctuation operators #115" $
+        helper "foo"
+            [hamlet|
+                $if True && True
+                    foo
+                $else
+                    bar
+            |]
 
 data Pair = Pair String Int