| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Text.XML.Expat.Internal.IO
Description
Synopsis
- type HParser = ByteString -> Bool -> IO (ForeignPtr Word8, CInt, Maybe XMLParseError)
- hexpatNewParser :: Maybe Encoding -> Maybe (ByteString -> Maybe ByteString) -> Bool -> IO (HParser, IO XMLParseLocation)
- encodingToString :: Encoding -> String
- data Encoding
- data XMLParseError = XMLParseError String XMLParseLocation
- data XMLParseLocation = XMLParseLocation {}
Documentation
type HParser = ByteString -> Bool -> IO (ForeignPtr Word8, CInt, Maybe XMLParseError) Source #
Arguments
| :: Maybe Encoding | |
| -> Maybe (ByteString -> Maybe ByteString) | Entity decoder |
| -> Bool | Whether to include input locations |
| -> IO (HParser, IO XMLParseLocation) |
encodingToString :: Encoding -> String Source #
data XMLParseError Source #
Parse error, consisting of message text and error location
Constructors
| XMLParseError String XMLParseLocation |
Instances
| Show XMLParseError Source # | |
Defined in Text.XML.Expat.Internal.IO | |
| NFData XMLParseError Source # | |
Defined in Text.XML.Expat.Internal.IO Methods rnf :: XMLParseError -> () Source # | |
| Eq XMLParseError Source # | |
Defined in Text.XML.Expat.Internal.IO Methods (==) :: XMLParseError -> XMLParseError -> Bool Source # (/=) :: XMLParseError -> XMLParseError -> Bool Source # | |
data XMLParseLocation Source #
Specifies a location of an event within the input text
Constructors
| XMLParseLocation | |
Fields
| |
Instances
| Show XMLParseLocation Source # | |
Defined in Text.XML.Expat.Internal.IO | |
| NFData XMLParseLocation Source # | |
Defined in Text.XML.Expat.Internal.IO Methods rnf :: XMLParseLocation -> () Source # | |
| Eq XMLParseLocation Source # | |
Defined in Text.XML.Expat.Internal.IO Methods (==) :: XMLParseLocation -> XMLParseLocation -> Bool Source # (/=) :: XMLParseLocation -> XMLParseLocation -> Bool Source # | |