tinyXml-0.1.0.0: A fast DOM parser for a subset of XML

Safe HaskellNone
LanguageHaskell2010

Text.Xml.Tiny.Internal

Contents

Description

This module contains types and functions that are mostly intended for the test suite, and should be considered internal for all other purposes

Synopsis

XML Nodes

data Node Source #

A parsed XML node

Constructors

Node 

Fields

data Attribute Source #

A parsed XML attribute

ParseDetails

data ParseDetails Source #

Constructors

ParseDetails 

Fields

ProtoParseDetails

An incompletely defined set of parse details

Fields

Slices

data Slice Source #

Constructors

Slice 

Fields

Instances

Eq Slice Source # 

Methods

(==) :: Slice -> Slice -> Bool #

(/=) :: Slice -> Slice -> Bool #

Ord Slice Source # 

Methods

compare :: Slice -> Slice -> Ordering #

(<) :: Slice -> Slice -> Bool #

(<=) :: Slice -> Slice -> Bool #

(>) :: Slice -> Slice -> Bool #

(>=) :: Slice -> Slice -> Bool #

max :: Slice -> Slice -> Slice #

min :: Slice -> Slice -> Slice #

Show Slice Source # 

Methods

showsPrec :: Int -> Slice -> ShowS #

show :: Slice -> String #

showList :: [Slice] -> ShowS #

Storable Slice Source # 

Methods

sizeOf :: Slice -> Int #

alignment :: Slice -> Int #

peekElemOff :: Ptr Slice -> Int -> IO Slice #

pokeElemOff :: Ptr Slice -> Int -> Slice -> IO () #

peekByteOff :: Ptr b -> Int -> IO Slice #

pokeByteOff :: Ptr b -> Int -> Slice -> IO () #

peek :: Ptr Slice -> IO Slice #

poke :: Ptr Slice -> Slice -> IO () #

fromOpen :: Config => Integral a => a -> Slice Source #

fromOpenClose :: Config => (Integral a1, Integral a) => a -> a1 -> Slice Source #

fromIndexPtr :: Config => Slice -> ForeignPtr Word8 -> ByteString Source #

Apply a slice to a foreign ptr of word characters and wrap as a bytestring

start :: Config => Slice -> Int32 Source #

Inclusive

end :: Config => Slice -> Int32 Source #

Non inclusive

take :: Config => Integral a => a -> Slice -> Slice Source #

drop :: Config => Integral t => t -> Slice -> Slice Source #

null :: Config => Slice -> Bool Source #

vector :: Config => Storable a => Slice -> Vector a -> [a] Source #

Apply a slice to a vector

render :: Config => Slice -> ByteString -> ByteString Source #

Apply a slice to a bytestring

toList :: Config => Slice -> [Int] Source #

Returns a list of indexes

Errors

newtype SrcLoc Source #

Constructors

SrcLoc Int 

Instances