hexpat-0.20.13: XML parser/formatter based on expat
Safe HaskellNone
LanguageHaskell98

Text.XML.Expat.Internal.IO

Description

Low-level interface to Expat. Unless speed is paramount, this should normally be avoided in favour of the interfaces provided by SAX and Tree, etc.

Synopsis

Documentation

type HParser = ByteString -> Bool -> IO (ForeignPtr Word8, CInt, Maybe XMLParseError) Source #

hexpatNewParser Source #

Arguments

:: Maybe Encoding 
-> Maybe (ByteString -> Maybe ByteString)

Entity decoder

-> Bool

Whether to include input locations

-> IO (HParser, IO XMLParseLocation) 

data Encoding Source #

Constructors

ASCII 
UTF8 
UTF16 
ISO88591 

data XMLParseError Source #

Parse error, consisting of message text and error location

Constructors

XMLParseError String XMLParseLocation 

Instances

Instances details
NFData XMLParseError Source # 
Instance details

Defined in Text.XML.Expat.Internal.IO

Methods

rnf :: XMLParseError -> ()

Show XMLParseError Source # 
Instance details

Defined in Text.XML.Expat.Internal.IO

Methods

showsPrec :: Int -> XMLParseError -> ShowS

show :: XMLParseError -> String

showList :: [XMLParseError] -> ShowS

Eq XMLParseError Source # 
Instance details

Defined in Text.XML.Expat.Internal.IO

data XMLParseLocation Source #

Specifies a location of an event within the input text

Constructors

XMLParseLocation 

Fields

Instances

Instances details
NFData XMLParseLocation Source # 
Instance details

Defined in Text.XML.Expat.Internal.IO

Methods

rnf :: XMLParseLocation -> ()

Show XMLParseLocation Source # 
Instance details

Defined in Text.XML.Expat.Internal.IO

Methods

showsPrec :: Int -> XMLParseLocation -> ShowS

show :: XMLParseLocation -> String

showList :: [XMLParseLocation] -> ShowS

Eq XMLParseLocation Source # 
Instance details

Defined in Text.XML.Expat.Internal.IO