xml-html-qq 0.1.0.0 → 0.1.0.1
raw patch · 4 files changed
+24/−4 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +3/−0
- src/Text/HTML/QQ.hs +6/−1
- src/Text/XML/QQ.hs +14/−2
- xml-html-qq.cabal +1/−1
README.md view
@@ -9,3 +9,6 @@  `xml-html-qq` provides quasi-quoters for XML and HTML `Document`s.++For documentation and usage examples, see the+[documentation](https://hackage.haskell.org/package/xml-html-qq) on Hackage.
src/Text/HTML/QQ.hs view
@@ -47,7 +47,7 @@ -- -- Here's a simple example of using it: ----- >>> [html|<html></html>|]+-- >>> [html|<html></html>|] :: Document -- Document {documentPrologue = Prologue {prologueBefore = [], prologueDoctype = Nothing, prologueAfter = []}, documentRoot = Element {elementName = Name {nameLocalName = "html", nameNamespace = Nothing, namePrefix = Nothing}, elementAttributes = fromList [], elementNodes = []}, documentEpilogue = []} -- -- Internally, this function is using the@@ -79,5 +79,10 @@ -- | This function is the same as 'html', but doesn't allow variable -- interpolation or control statements. It also produces expressions of type -- 'Document'.+--+-- Here's a simple example of using it:+--+-- >>> [htmlRaw|<html></html>|] :: Document+-- Document ... htmlRaw :: QuasiQuoter htmlRaw = createExpQuasiQuoter $ lift . parseLT . pack
src/Text/XML/QQ.hs view
@@ -64,7 +64,7 @@ -- -- Here's a simple example of using it: ----- >>> [xml|<html></html>|]+-- >>> [xml|<html></html>|] :: Either SomeException Document -- Right (Document {documentPrologue = Prologue {prologueBefore = [], prologueDoctype = Nothing, prologueAfter = []}, documentRoot = Element {elementName = Name {nameLocalName = "html", nameNamespace = Nothing, namePrefix = Nothing}, elementAttributes = fromList [], elementNodes = []}, documentEpilogue = []}) -- -- Internally, this function is using the@@ -99,8 +99,13 @@ -- If your input string cannot be parsed into a valid 'Document', an error will -- be thrown at runtime with 'error'. ----- This function is nice to use in GHCi or tests, but should not be used in+-- This function is nice to use in GHCi or tests, but should __NOT__ be used in -- production code.+--+-- Here's a simple example of using it:+--+-- >>> [xmlUnsafe|<html></html>|] :: Document+-- Document ... xmlUnsafe :: QuasiQuoter xmlUnsafe = createExpQuasiQuoter $ \string ->@@ -114,6 +119,13 @@ -- -- An error will be thrown at compile-time if the input string cannot be parsed -- into a 'Document'.+--+-- Unlike 'xmlUnsafe', this function is safe to use in production code.+--+-- Here's a simple example of using it:+--+-- >>> [xmlRaw|<html></html>|] :: Document+-- Document ... xmlRaw :: QuasiQuoter xmlRaw = createExpQuasiQuoter $ \string ->
xml-html-qq.cabal view
@@ -1,5 +1,5 @@ name: xml-html-qq-version: 0.1.0.0+version: 0.1.0.1 synopsis: Quasi-quoters for XML and HTML Documents description: Please see <https://github.com/cdepillabout/xml-html-qq#readme README.md>. homepage: https://github.com/cdepillabout/xml-html-qq