HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehxt-9.3.1.22Haskell2010

Text.XML.HXT.Arrow.XmlArrow

Basic arrows for processing XML documents

All arrows use IO and a global state for options, errorhandling, ...

  • 2 classes
  • Packagehxt-9.3.1.22
  • Exports2
  • LanguageHaskell2010
  • LicenceMIT
  • SourceXmlArrow.hs
classclass (Arrow a, ArrowList a, ArrowTree a) => ArrowXml (a :: Type -> Type -> Type) where
#

Arrows for processing XmlTrees

These arrows can be grouped into predicates, selectors, constructors, and transformers.

All predicates (tests) act like Control.Arrow.ArrowIf.none for failure and Control.Arrow.ArrowIf.this for success. A logical and can be formed by a1 >>> a2 , a locical or by a1 <+> a2 .

Selector arrows will fail, when applied to wrong input, e.g. selecting the text of a node with getText will fail when applied to a none text node.

Edit arrows will remain the input unchanged, when applied to wrong argument, e.g. editing the content of a text node with changeText applied to an element node will return the unchanged element node.

Methods

Instances4ArrowXml
  • ArrowXml IOLADefined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlArrow
  • ArrowXml LADefined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlArrow
  • ArrowXml (IOSLA s)Defined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlArrow
  • ArrowXml (SLA s)Defined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlArrow
classclass ArrowXml a => ArrowDTD (a :: Type -> Type -> Type) where
#

Document Type Definition arrows

These are separated, because they are not needed for document processing, only when processing the DTD, e.g. for generating access funtions for the toolbox from a DTD (se example DTDtoHaskell in the examples directory)

Instances4ArrowDTD
  • ArrowDTD IOLADefined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlArrow
  • ArrowDTD LADefined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlArrow
  • ArrowDTD (IOSLA s)Defined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlArrow
  • ArrowDTD (SLA s)Defined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlArrow