change the user defined part of the state
Modulehxt-9.3.1.22Haskell2010
Text.XML.HXT.Arrow.XmlState.TypeDefs
the basic state arrows for XML processing
A state is needed for global processing options, like encoding options, document base URI, trace levels and error message handling
The state is separated into a user defined state and a system state. The system state contains variables for error message handling, for tracing, for the document base for accessing XML documents with relative references, e.g. DTDs, and a global key value store. This assoc list has strings as keys and lists of XmlTrees as values. It is used to store arbitrary XML and text values, e.g. user defined global options.
The user defined part of the store is in the default case empty, defined as (). It can be extended with an arbitray data type
Synopsis
- value changeUserState
- value chgSysVar
- value configSysVar
- value configSysVars
- value getAllSysAttrs
- value getSysAttr
- value getSysAttrInt
- value getSysVar
- value getUserState
- value incrSysVar
- value localSysEnv
- value localSysVar
- value setSysAttr
- value setSysAttrInt
- value setSysAttrString
- value setSysVar
- value setUserState
- value theAcceptedMimeTypes
- value theAddDefaultDTD
- value theAttrList
- value theBaseURI
- value theBinaryCompression
- value theBinaryDeCompression
- value theCache404Err
- value theCacheConfig
- value theCacheDir
- value theCacheRead
- value theCanonicalize
- value theCheckNamespaces
- value theDefaultBaseURI
- value theDocumentAge
- value theEncodingErrors
- value theErrorMsgCollect
- value theErrorMsgHandler
- value theErrorMsgList
- value theErrorStatus
- value theExpat
- value theExpatErrors
- value theExpatParser
- value theFileMimeType
- value theHttpHandler
- value theIgnoreNoneXmlContents
- value theIndent
- value theInputConfig
- value theInputEncoding
- value theInputOptions
- value theLowerCaseNames
- value theMimeTypeFile
- value theMimeTypeHandlers
- value theMimeTypes
- value theNoEmptyElemFor
- value theOutputConfig
- value theOutputEncoding
- value theOutputFmt
- value theParseByMimeType
- value theParseConfig
- value theParseHTML
- value thePreserveComment
- value theProxy
- value theRedirect
- value theRelaxAttrList
- value theRelaxCheckRestr
- value theRelaxCollectErrors
- value theRelaxConfig
- value theRelaxDefineId
- value theRelaxNoOfErrors
- value theRelaxSchema
- value theRelaxValidate
- value theRelaxValidateExtRef
- value theRelaxValidateInclude
- value theRelaxValidator
- value theRemoveWS
- value theShowHaskell
- value theShowTree
- value theStrictDeserialize
- value theStrictInput
- value theSubstDTDEntities
- value theSubstHTMLEntities
- value theSysEnv
- value theSysState
- value theSysWriter
- value theTagSoup
- value theTagSoupParser
- value theTextMode
- value theTrace
- value theTraceCmd
- value theTraceLevel
- value theUserState
- value theValidate
- value theWarnings
- value theWithCache
- value theXmlPi
- value theXmlSchemaConfig
- value theXmlSchemaSchema
- value theXmlSchemaValidate
- value theXmlSchemaValidator
- value toInt
- value unsetSysAttr
- value withExtendedUserState
- value withOtherUserState
- value withoutUserState
- type CompressionFct
- type DeCompressionFct
- type IOSArrow
- type IOStateArrow
- type MimeTypeHandlers
- type SysConfig
- type SysConfigList
- data XIOCacheConfig
- data XIOInputConfig
- data XIOOutputConfig
- data XIOParseConfig
- data XIORelaxConfig
- data XIOState
- data XIOSysEnv
- data XIOSysState
- data XIOSysWriter
- data XIOXmlSchemaConfig
- data XIOXoutConfig
- data Selector
- value chgS
- value idS
- value .&&&.
- Packagehxt-9.3.1.22
- Exports123
- LanguageHaskell2010
- LicenceMIT
- SourceTypeDefs.hs
read all attributes from global state
read an attribute value from global state
read an int value from global state
getSysAttrInt 0 myIntAttrread the user defined part of the state
store a string in global state under a given attribute name
store an int value in global state
set the user defined part of the state
remove an entry in global state, arrow input remains unchanged
extend user state
Run an arrow with an extended user state component, The old component is stored together with a new one in a pair, the arrow is executed with this extended state, and the augmented state component is removed form the state when the arrow has finished its execution
change the type of user state
This conversion is useful, when running a state arrow with another structure of the user state, e.g. with () when executing some IO arrows
The arrow for stateful arrows with no user defined state
The arrow type for stateful arrows
Constructors
Constructors
Constructors
XIOOcfgxioIndent :: !BoolxioOutputEncoding :: !StringxioOutputFmt :: !XIOXoutConfigxioXmlPi :: !BoolxioNoEmptyElemFor :: ![String]xioAddDefaultDTD :: !BoolxioTextMode :: !BoolxioShowTree :: !BoolxioShowHaskell :: !Bool
Constructors
XIOPcfgxioMimeTypes :: MimeTypeTablexioMimeTypeHandlers :: MimeTypeHandlersxioMimeTypeFile :: StringxioAcceptedMimeTypes :: [String]xioFileMimeType :: StringxioWarnings :: !BoolxioRemoveWS :: !BoolxioParseByMimeType :: !BoolxioParseHTML :: !BoolxioLowerCaseNames :: !BoolxioPreserveComment :: !BoolxioValidate :: !BoolxioSubstDTDEntities :: !BoolxioSubstHTMLEntities :: !BoolxioCheckNamespaces :: !BoolxioCanonicalize :: !BoolxioIgnoreNoneXmlContents :: !BoolxioTagSoup :: !BoolxioTagSoupParser :: IOSArrow XmlTree XmlTreexioExpat :: !BoolxioExpatParser :: IOSArrow XmlTree XmlTree
Constructors
state datatype consists of a system state and a user state the user state is not fixed
Constructors
XIOStatexioSysState :: !XIOSysStatexioUserState :: !us
Constructors
XIOEnvxioTraceLevel :: !IntxioTraceCmd :: Int -> String -> IO ()xioErrorMsgHandler :: String -> IO ()xioErrorMsgCollect :: !BoolxioBaseURI :: !StringxioDefaultBaseURI :: !StringxioAttrList :: !AttributesxioInputConfig :: !XIOInputConfigxioParseConfig :: !XIOParseConfigxioOutputConfig :: !XIOOutputConfigxioRelaxConfig :: !XIORelaxConfigxioXmlSchemaConfig :: !XIOXmlSchemaConfigxioCacheConfig :: !XIOCacheConfig
predefined system state data type with all components for the system functions, like trace, error handling, ...
Constructors
Instances1NFData
NFData XIOSysStateDefined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlState.TypeDefs
Constructors
Constructors
Instances1Eq
Eq XIOXoutConfigDefined in hxt-9.3.1.22 · Text.XML.HXT.Arrow.XmlState.TypeDefs
A Selector is a pair of an access function and a modifying function for reading and updating parts of a composite type