Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains types and functions that are mostly intended for the test suite, and should be considered internal for all other purposes
- data Node = Node {
- attributesV :: !(Vector AttributeParseDetails)
- nodesV :: !(Vector ParseDetails)
- source :: !ByteString
- slices :: !ParseDetails
- data Attribute = Attribute {}
- data ParseDetails
- = ParseDetails {
- name :: !Slice
- inner :: !Slice
- outer :: !Slice
- attributes :: !Slice
- nodeContents :: !Slice
- | ProtoParseDetails {
- name, attributes :: !Slice
- innerStart, outerStart :: !Int32
- = ParseDetails {
- data AttributeParseDetails = AttributeParseDetails {}
- data Slice = Slice {}
- fromOpen :: Config => Integral a => a -> Slice
- fromOpenClose :: Config => (Integral a1, Integral a) => a -> a1 -> Slice
- fromIndexPtr :: Config => Slice -> ForeignPtr Word8 -> ByteString
- empty :: Slice
- start :: Config => Slice -> Int32
- end :: Config => Slice -> Int32
- take :: Config => Integral a => a -> Slice -> Slice
- drop :: Config => Integral t => t -> Slice -> Slice
- null :: Config => Slice -> Bool
- vector :: Config => Storable a => Slice -> Vector a -> [a]
- render :: Config => Slice -> ByteString -> ByteString
- toList :: Config => Slice -> [Int]
- newtype SrcLoc = SrcLoc Int
- data Error = Error ErrorType CallStack
- data ErrorType
XML Nodes
A parsed XML node
Node | |
|
A parsed XML attribute
ParseDetails
data ParseDetails Source #
ParseDetails | |
| |
ProtoParseDetails | An incompletely defined set of parse details |
|
Show ParseDetails Source # | |
Storable ParseDetails Source # | Assumes that a name can never be the empty slice |
Slices
fromIndexPtr :: Config => Slice -> ForeignPtr Word8 -> ByteString Source #
Apply a slice to a foreign ptr of word characters and wrap as a bytestring
render :: Config => Slice -> ByteString -> ByteString Source #
Apply a slice to a bytestring