xml-conduit 1.3.3 → 1.3.3.1
raw patch · 3 files changed
+8/−4 lines, 3 files
Files
- ChangeLog.md +4/−0
- Text/XML/Stream/Parse.hs +3/−3
- xml-conduit.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 1.3.3.1++* Generalize signature of choose (Fixes [#72](https://github.com/snoyberg/xml/issues/72)) [#73](https://github.com/snoyberg/xml/pull/73)+ ## 1.3.3 * New render setting to control when to use CDATA [#68](https://github.com/snoyberg/xml/pull/68)
Text/XML/Stream/Parse.hs view
@@ -816,9 +816,9 @@ -- | Get the value of the first parser which returns 'Just'. If no parsers -- succeed (i.e., return 'Just'), this function returns 'Nothing'. choose :: Monad m- => [Consumer Event m (Maybe a)] -- ^ List of parsers that will be tried in order.- -> Consumer Event m (Maybe a) -- ^ Result of the first parser to succeed, or @Nothing@- -- if no parser succeeded+ => [ConduitM Event o m (Maybe a)] -- ^ List of parsers that will be tried in order.+ -> ConduitM Event o m (Maybe a) -- ^ Result of the first parser to succeed, or @Nothing@+ -- if no parser succeeded choose [] = return Nothing choose (i:is) = i >>= maybe (choose is) (return . Just)
xml-conduit.cabal view
@@ -1,5 +1,5 @@ name: xml-conduit-version: 1.3.3+version: 1.3.3.1 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>, Aristid Breitkreuz <aristidb@googlemail.com>