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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulehxt-9.3.1.22Haskell2010

Text.XML.HXT.Arrow.XmlState.RunIOStateArrow

run an io state arrow

  • 20 values
  • Packagehxt-9.3.1.22
  • Exports20
  • LanguageHaskell2010
  • LicenceMIT
  • SourceRunIOStateArrow.hs
valuerunX :: IOSArrow XmlTree c -> IO [c]
#

apply an IOSArrow to an empty root node with initialState () as initial state

the main entry point for running a state arrow with IO

when running runX f an empty XML root node is applied to f. usually f will start with a constant arrow (ignoring the input), e.g. a readDocument arrow.

for usage see examples with writeDocument

if input has to be feed into the arrow use runIOSLA like in runIOSLA f emptyX inputDoc