|
Text.XML.HaXml.Xtract.Combinators |
|
|
Description |
This is a new set of XML combinators for Xtract, not standard,
but based on the standard set in Text.Xml.Haxml.Combinators.
The main difference is that the Content Filter type becomes a
Double Filter. A Double Filter always takes the whole document
as an extra argument, so you can start to traverse it again from
the root, when at any inner location within the document tree.
The new combinator definitions are derived from the old ones.
The same names have the equivalent meaning - use module qualification
on imports to distinguish between CFilter and DFilter variations.
|
|
Synopsis |
|
|
|
Documentation |
|
|
double content filter - takes document root + local subtree.
|
|
|
lift an ordinary content filter to a double filter.
|
|
|
drop a double filter to an ordinary content filter.
(permitting interior access to document root)
|
|
|
drop a double filter to an ordinary content filter.
(Where interior access to the document root is not needed, the
retaining pointer to the outer element can be pruned away.
cfilter is more space-efficient than dfilter in this situation.)
|
|
|
lift a CFilter combinator to a DFilter combinator
|
|
|
lifted composition over double filters.
|
|
(|>|) :: (a -> b -> [c]) -> (a -> b -> [c]) -> a -> b -> [c] | Source |
|
lifted choice.
|
|
union :: (a -> b -> [c]) -> (a -> b -> [c]) -> a -> b -> [c] | Source |
|
lifted union.
|
|
|
lifted predicates.
|
|
|
lifted unit and zero.
|
|
|
|
|
|
|
|
|
|
cat :: [a -> b -> [c]] -> a -> b -> [c] | Source |
|
|
|
|
|
|
|
|
Produced by Haddock version 2.4.1 |