| 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 {
- xmlLineNumber :: Int64
- xmlColumnNumber :: Int64
- xmlByteIndex :: Int64
- xmlByteCount :: Int64
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
| NFData XMLParseError Source # | |
Defined in Text.XML.Expat.Internal.IO Methods rnf :: XMLParseError -> () | |
| Show XMLParseError Source # | |
Defined in Text.XML.Expat.Internal.IO Methods showsPrec :: Int -> XMLParseError -> ShowS show :: XMLParseError -> String showList :: [XMLParseError] -> ShowS | |
| Eq XMLParseError Source # | |
Defined in Text.XML.Expat.Internal.IO | |
data XMLParseLocation Source #
Specifies a location of an event within the input text
Constructors
| XMLParseLocation | |
Fields
| |
Instances
| NFData XMLParseLocation Source # | |
Defined in Text.XML.Expat.Internal.IO Methods rnf :: XMLParseLocation -> () | |
| Show XMLParseLocation Source # | |
Defined in Text.XML.Expat.Internal.IO Methods showsPrec :: Int -> XMLParseLocation -> ShowS show :: XMLParseLocation -> String showList :: [XMLParseLocation] -> ShowS | |
| Eq XMLParseLocation Source # | |
Defined in Text.XML.Expat.Internal.IO Methods (==) :: XMLParseLocation -> XMLParseLocation -> Bool (/=) :: XMLParseLocation -> XMLParseLocation -> Bool | |