packages feed

hxt 9.3.1.6 → 9.3.1.7

raw patch · 2 files changed

+7/−2 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Data.Tree.NTree.TypeDefs: instance Typeable1 NTree
+ Data.Tree.NTree.TypeDefs: instance Typeable NTree
- Control.Arrow.ArrowIf: class ArrowList a => ArrowIf a where ifP p = ifA (isA p) neg f = ifA f none this f when g = ifA g f this f whenP g = ifP g f this f whenNot g = ifA g this f f whenNotP g = ifP g this f f guards g = ifA f g none f guardsP g = ifP f g none filterA f = ifA f this none f containing g = f >>> g `guards` this f notContaining g = f >>> ifA g none this choiceA = foldr ifA' none where ifA' (g :-> f) = ifA g f tagA p = ifA p (arr Left) (arr Right) spanA p = ifA (arrL (take 1) >>> p) (arr head &&& (arr tail >>> spanA p) >>> arr (\ ~(x, ~(xs, ys)) -> (x : xs, ys))) (arr (\ l -> ([], l))) partitionA p = listA (arrL id >>> tagA p) >>^ ((\ ~(l1, l2) -> (unTag l1, unTag l2)) . partition (isLeft)) where isLeft (Left _) = True isLeft _ = False unTag = map (either id id)
+ Control.Arrow.ArrowIf: class ArrowList a => ArrowIf a where ifP p = ifA (isA p) neg f = ifA f none this f `when` g = ifA g f this f `whenP` g = ifP g f this f `whenNot` g = ifA g this f f `whenNotP` g = ifP g this f f `guards` g = ifA f g none f `guardsP` g = ifP f g none filterA f = ifA f this none f `containing` g = f >>> g `guards` this f `notContaining` g = f >>> ifA g none this choiceA = foldr ifA' none where ifA' (g :-> f) = ifA g f tagA p = ifA p (arr Left) (arr Right) spanA p = ifA (arrL (take 1) >>> p) (arr head &&& (arr tail >>> spanA p) >>> arr (\ ~(x, ~(xs, ys)) -> (x : xs, ys))) (arr (\ l -> ([], l))) partitionA p = listA (arrL id >>> tagA p) >>^ ((\ ~(l1, l2) -> (unTag l1, unTag l2)) . partition (isLeft)) where isLeft (Left _) = True isLeft _ = False unTag = map (either id id)

Files

hxt.cabal view
@@ -1,6 +1,6 @@ -- arch-tag: Haskell XML Toolbox main description file Name:           hxt-Version:        9.3.1.6+Version:        9.3.1.7 Synopsis:       A collection of tools for processing XML with Haskell. Description:    The Haskell XML Toolbox bases on the ideas of HaXml and HXML,                 but introduces a more general approach for processing XML with Haskell.@@ -16,6 +16,7 @@                 hxt-regex-xmlschema contain the extensions.                 hxt-unicode contains encoding and decoding functions,                 hxt-charproperties char properties for unicode and XML.+                Changes from 9.3.1.6: canonicalize added in hread and hreadDoc                 .                 Changes from 9.3.1.4: conditionally (no default)                 dependency from networt changed to network-uri with flag "network-uri"
src/Text/XML/HXT/Arrow/ReadDocument.hs view
@@ -484,6 +484,8 @@       PI.hread                              -- substHtmlEntityRefs is done in parser       >>>                                   -- as well as subst HTML char refs       editNTreeA [isError :-> none]         -- ignores all errors+      >>>+      canonicalizeAllNodes                  -- combine text nodes, substitute char refs  -- | like hread, but accepts a whole document, not a HTML content @@ -493,7 +495,9 @@       PI.hreadDoc                           -- substHtmlEntityRefs is done in parser       >>>                                   -- as well as subst HTML char refs       editNTreeA [isError :-> none]         -- ignores all errors-+      >>>+      canonicalizeAllNodes+       -- ------------------------------------------------------------  -- |