packages feed

hamlet 1.1.3 → 1.1.3.1

raw patch · 2 files changed

+8/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Text/Hamlet/Parse.hs view
@@ -272,7 +272,13 @@     tagCond = do         d <- between (char ':') (char ':') parseDeref         tagClass (Just d) <|> tagAttrib (Just d)-    tagClass x = char '.' >> (TagClass . (,) x) <$> tagAttribValue NotInQuotes+    tagClass x = do+        clazz <- char '.' >> tagAttribValue NotInQuotes+        let hasHash (ContentRaw s) = any (== '#') s+            hasHash _ = False+        if any hasHash clazz+            then fail $ "Invalid class: " ++ show clazz ++ ". Did you want a space between a class and an ID?"+            else return (TagClass (x, clazz))     tagAttrib cond = do         s <- many1 $ noneOf " \t=\r\n><"         v <- (char '=' >> Just <$> tagAttribValue NotInQuotesAttr) <|> return Nothing
hamlet.cabal view
@@ -1,5 +1,5 @@ name:            hamlet-version:         1.1.3+version:         1.1.3.1 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>