hamlet 0.10.7.1 → 0.10.8
raw patch · 3 files changed
+8/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Text/Hamlet.hs +4/−0
- Text/Hamlet/Parse.hs +1/−0
- hamlet.cabal +3/−1
Text/Hamlet.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE TemplateHaskell #-}+{-# LANGUAGE CPP #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE FlexibleContexts #-}@@ -246,6 +247,9 @@ hamletFileWithSettings :: Q HamletRules -> HamletSettings -> FilePath -> Q Exp hamletFileWithSettings qhr set fp = do+#ifdef GHC_7_4+ qAddDependentFile fp+#endif contents <- fmap TL.unpack $ qRunIO $ readUtf8File fp hamletFromString qhr set contents
Text/Hamlet/Parse.hs view
@@ -269,6 +269,7 @@ _ <- many $ oneOf " \t" c <- (eol >> return []) <|> (char '>' >> content InContent) let (tn, attr, classes) = tag' $ TagName name : xs+ when ('/' `elem` tn) $ error "A tag name may not contain a slash" return $ LineTag tn attr c classes data TagPiece = TagName String
hamlet.cabal view
@@ -1,5 +1,5 @@ name: hamlet-version: 0.10.7.1+version: 0.10.8 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -55,6 +55,8 @@ Text.Hamlet.RT other-modules: Text.Hamlet.Parse ghc-options: -Wall+ if impl(ghc >= 7.4)+ cpp-options: -DGHC_7_4 test-suite test hs-source-dirs: test