HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulexml-conduit-1.10.1.0Haskell2010

Text.XML.Stream.Render.Internal

Enumeratees to render XML Events. Unlike libxml-enumerator and expat-enumerator, this module does not provide IO and ST variants, since the underlying rendering operations are pure functions.

  • 2 types
  • 15 values

Rendering XML files

4 declarations

Renderer settings

8 declarations
methoddef :: a
#

The default value for this type.

valuersNamespaces :: RenderSettings -> [(Text, Text)]
#

Defines some top level namespace definitions to be used, in the form of (prefix, namespace). This has absolutely no impact on the meaning of your documents, but can increase readability by moving commonly used namespace declarations to the top level.

Determines whether the XML declaration will be output. Note that when using the streaming API the XML declaration will be output only if this is set to true and the stream includes an EventBeginDocument event. Apart from yielding it explicitly, this can be achieved by wrapping the stream in the document function.

Default: True

valueorderAttrs :: [(Name, [Name])] -> Name -> Map Name Text -> [(Name, Text)]
#

Convenience function to create an ordering function suitable for use as the value of rsAttrOrder. The ordering function is created from an explicit ordering of the attributes, specified as a list of tuples, as follows: In each tuple, the first component is the Name of an element, and the second component is a list of attributes names. When the given element is rendered, the attributes listed, when present, appear first in the given order, followed by any other attributes in arbitrary order. If an element does not appear, all of its attributes are rendered in arbitrary order.

Event rendering

3 declarations

Attribute rendering

3 declarations
datadata Attributes
#

A list of attributes.

Instances2Semigroup, Monoid