| 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
Whether to include input locations
encodingToString :: Encoding -> String Source #
data XMLParseError Source #
Parse error, consisting of message text and error location
Constructors
Instances
Methods
(==) :: XMLParseError -> XMLParseError -> Bool #
(/=) :: XMLParseError -> XMLParseError -> Bool #
Methods
showsPrec :: Int -> XMLParseError -> ShowS #
show :: XMLParseError -> String #
showList :: [XMLParseError] -> ShowS #
Methods
rnf :: XMLParseError -> () #
data XMLParseLocation Source #
Specifies a location of an event within the input text
Constructors
Fields
- xmlLineNumber :: Int64
Line number of the event
- xmlColumnNumber :: Int64
Column number of the event
- xmlByteIndex :: Int64
Byte index of event from start of document
- xmlByteCount :: Int64
The number of bytes in the event
Instances
Methods
(==) :: XMLParseLocation -> XMLParseLocation -> Bool #
(/=) :: XMLParseLocation -> XMLParseLocation -> Bool #
Methods
showsPrec :: Int -> XMLParseLocation -> ShowS #
show :: XMLParseLocation -> String #
showList :: [XMLParseLocation] -> ShowS #
Methods
rnf :: XMLParseLocation -> () #