packages feed

xml-conduit 1.10.0.0 → 1.10.0.1

raw patch · 3 files changed

+30/−4 lines, 3 files

Files

ChangeLog.md view
@@ -1,3 +1,19 @@+## 1.10.0.1+* Fix doctest on GHC 9.12++## 1.10.0.0++* `rsPretty` is now exported only from the new module `Text.XML.Render.Internal`+  - Migration path: Import it from its new home.+  - Since it is now internal, be prepared for it to be changed or removed in some future version.+* `prettify` is no longer exported at all.+  - Migration path: Use `rsPretty = True` in your `RenderSettings` when you finally render the stream instead of inserting the `prettify` combinator into your conduit pipeline.+  - Same caveat as above about `rsPretty` now being internal+  - If you require having the prettified version of an XML event stream as a conduit before rendering (we hope this use case occurs rarely if ever), things will be more awkward:+    - The hack of rendering with `rsPretty = True` and re-parsing might work.+    - Another hack could be to fork this library and add `prettify` to the export list in `Text.XML.Render.Internal`.+    - Otherwise, you might need to implement pretty-printing yourself. The source code of `Text.XML.Render.Internal` might be helpful in that case.+ ## 1.9.1.1  * Entity declarations with tags inside are now correctly handled
src/Text/XML/Stream/Parse.hs view
@@ -1301,9 +1301,19 @@ -- -- If an opening-tag is consumed but no matching closing-tag is found, an 'XmlException' is thrown. ----- >>> runConduit $ parseLBS def "<a><b></b>" .| void (takeTree "a" ignoreAttrs) .| sinkList--- *** Exception: InvalidEndElement (Name {nameLocalName = "a", nameNamespace = Nothing, namePrefix = Nothing}) Nothing---+{-+>>> runConduit $ parseLBS def "<a><b></b>" .| void (takeTree "a" ignoreAttrs) .| sinkList+#if MIN_VERSION_base(4, 21, 0)+*** Exception: Error while parsing XML event: expected </Name {nameLocalName = "a", nameNamespace = Nothing, namePrefix = Nothing}>, got nothing++^+HasCallStack backtrace:+  throwIO, called at libraries/exceptions/src/Control/Monad/Catch.hs:308:12 in exceptions-0.10.9-inplace:Control.Monad.Catch+  throwM, called at /home/alexfmpe/profiles/alexfmpe/repos/xml/xml-conduit/src/Text/XML/Stream/Parse.hs:1324:71 in main:Text.XML.Stream.Parse+#else+*** Exception: InvalidEndElement (Name {nameLocalName = "a", nameNamespace = Nothing, namePrefix = Nothing}) Nothing+#endif+-} -- This function automatically ignores comments, instructions and whitespace. -- -- Returns @Just ()@ if an element was consumed, 'Nothing' otherwise.
xml-conduit.cabal view
@@ -1,7 +1,7 @@ cabal-version:   1.14  name:            xml-conduit-version:         1.10.0.0+version:         1.10.0.1 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>, Aristid Breitkreuz <aristidb@googlemail.com>