Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data LineColumn = LineColumn {}
- newtype Offset = Offset Int
- data FileRange pos = FileRange {
- fileRange_file :: FilePath
- fileRange_begin :: pos
- fileRange_end :: pos
- type FileSourced = Sourced (FileSource Offset)
- type FileSource pos = NonEmpty (FileRange pos)
- class NoSource src where
- noSource :: src
- data Sourced src a = Sourced {}
- data QName = QName {}
- data PName = PName {}
- newtype NCName = NCName {}
- data Namespaces prefix = Namespaces {
- namespaces_prefixes :: HashMap Namespace prefix
- namespaces_default :: Namespace
- newtype Namespace = Namespace {
- unNamespace :: Text
- newtype Name = Name {}
- newtype CharRef = CharRef Char
- data EntityRef = EntityRef {}
- data Escaped
- newtype EscapedText = EscapedText (Seq Escaped)
- data Node
- type XMLs src = Seq (XML src)
- type XML src = Tree (Sourced src Node)
- pattern Tree0 :: a -> Tree a
- union :: Semigroup (Sourced src EscapedText) => XMLs src -> XMLs src -> XMLs src
- unions :: Semigroup (Sourced src EscapedText) => Foldable f => f (XMLs src) -> XMLs src
- escapeText :: Text -> EscapedText
- escapeChar :: Char -> Escaped
- unescapeText :: EscapedText -> Text
- entityRef_lt :: EntityRef
- entityRef_gt :: EntityRef
- entityRef_amp :: EntityRef
- entityRef_quot :: EntityRef
- entityRef_apos :: EntityRef
- xmlns_xml :: Namespace
- xmlns_xmlns :: Namespace
- xmlns_empty :: Namespace
- prefixifyQName :: Namespaces NCName -> QName -> PName
- ncName :: Text -> Maybe NCName
- poolNCNames :: [NCName]
- freshNCName :: HashSet NCName -> NCName
- freshifyNCName :: HashSet NCName -> NCName -> NCName
- pName :: NCName -> PName
- qName :: NCName -> QName
- notSourced :: NoSource src => a -> Sourced src a
- filePos1 :: LineColumn
- data Tree a = Tree {}
- type Trees a = Seq (Tree a)
- tree0 :: a -> Tree a
Documentation
data LineColumn Source #
Absolute text file position.
Instances
Eq LineColumn Source # | |
Defined in Symantic.XML.Document (==) :: LineColumn -> LineColumn -> Bool # (/=) :: LineColumn -> LineColumn -> Bool # | |
Ord LineColumn Source # | |
Defined in Symantic.XML.Document compare :: LineColumn -> LineColumn -> Ordering # (<) :: LineColumn -> LineColumn -> Bool # (<=) :: LineColumn -> LineColumn -> Bool # (>) :: LineColumn -> LineColumn -> Bool # (>=) :: LineColumn -> LineColumn -> Bool # max :: LineColumn -> LineColumn -> LineColumn # min :: LineColumn -> LineColumn -> LineColumn # | |
Show LineColumn Source # | |
Defined in Symantic.XML.Document showsPrec :: Int -> LineColumn -> ShowS # show :: LineColumn -> String # showList :: [LineColumn] -> ShowS # | |
Default LineColumn Source # | |
Defined in Symantic.XML.Document def :: LineColumn # | |
Show (FileRange LineColumn) Source # | |
Defined in Symantic.XML.Document | |
Default (FileRange LineColumn) Source # | |
Defined in Symantic.XML.Document def :: FileRange LineColumn # |
Instances
Eq Offset Source # | |
Ord Offset Source # | |
Show Offset Source # | |
Semigroup Offset Source # | |
Monoid Offset Source # | |
Default Offset Source # | |
Defined in Symantic.XML.Document | |
NoSource Offset Source # | |
Defined in Symantic.XML.Document | |
Show (FileRange Offset) Source # | |
Default (FileRange Offset) Source # | |
Defined in Symantic.XML.Document | |
Semigroup a => Semigroup (Sourced (FileSource Offset) a) Source # | |
Defined in Symantic.XML.Document (<>) :: Sourced (FileSource Offset) a -> Sourced (FileSource Offset) a -> Sourced (FileSource Offset) a # sconcat :: NonEmpty (Sourced (FileSource Offset) a) -> Sourced (FileSource Offset) a # stimes :: Integral b => b -> Sourced (FileSource Offset) a -> Sourced (FileSource Offset) a # |
FileRange | |
|
Instances
type FileSourced = Sourced (FileSource Offset) Source #
type FileSource pos = NonEmpty (FileRange pos) Source #
class NoSource src where Source #
Instances
NoSource Offset Source # | |
Defined in Symantic.XML.Document | |
Default pos => NoSource (FileRange pos) Source # | |
Defined in Symantic.XML.Document | |
Default pos => NoSource (FileSource pos) Source # | |
Defined in Symantic.XML.Document noSource :: FileSource pos Source # |
Instances
Qualified name.
QName | |
|
Instances
Eq QName Source # | |
Ord QName Source # | |
Show QName Source # | |
IsString QName Source # | |
Defined in Symantic.XML.Document fromString :: String -> QName # | |
Generic QName Source # | |
Hashable QName Source # | |
Defined in Symantic.XML.Document | |
type Rep QName Source # | |
Defined in Symantic.XML.Document type Rep QName = D1 (MetaData "QName" "Symantic.XML.Document" "symantic-xml-1.0.0.20190223-FvgnS5499gNFNEq7fF4WT9" False) (C1 (MetaCons "QName" PrefixI True) (S1 (MetaSel (Just "qNameSpace") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Namespace) :*: S1 (MetaSel (Just "qNameLocal") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 NCName))) |
Prefixed name.
PName | |
|
Instances
Eq PName Source # | |
Ord PName Source # | |
Show PName Source # | |
IsString PName Source # | |
Defined in Symantic.XML.Document fromString :: String -> PName # | |
Generic PName Source # | |
Hashable PName Source # | |
Defined in Symantic.XML.Document | |
Buildable PName Source # | |
type Rep PName Source # | |
Defined in Symantic.XML.Document type Rep PName = D1 (MetaData "PName" "Symantic.XML.Document" "symantic-xml-1.0.0.20190223-FvgnS5499gNFNEq7fF4WT9" False) (C1 (MetaCons "PName" PrefixI True) (S1 (MetaSel (Just "pNameSpace") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe NCName)) :*: S1 (MetaSel (Just "pNameLocal") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 NCName))) |
Non-colonized name.
Instances
data Namespaces prefix Source #
Namespaces | |
|
Instances
newtype EscapedText Source #
Instances
NodeElem QName | |
NodeAttr QName | Node with a |
NodePI PName Text | |
NodeText EscapedText | Leaf. |
NodeComment Text | Leaf. |
NodeCDATA Text | Leaf. |
Instances
escapeText :: Text -> EscapedText Source #
escapeChar :: Char -> Escaped Source #
unescapeText :: EscapedText -> Text Source #
prefixifyQName :: Namespaces NCName -> QName -> PName Source #
poolNCNames :: [NCName] Source #
notSourced :: NoSource src => a -> Sourced src a Source #
Instances
Monad Tree | |
Functor Tree | |
Applicative Tree | |
Foldable Tree | |
Defined in Data.TreeSeq.Strict fold :: Monoid m => Tree m -> m # foldMap :: Monoid m => (a -> m) -> Tree a -> m # foldr :: (a -> b -> b) -> b -> Tree a -> b # foldr' :: (a -> b -> b) -> b -> Tree a -> b # foldl :: (b -> a -> b) -> b -> Tree a -> b # foldl' :: (b -> a -> b) -> b -> Tree a -> b # foldr1 :: (a -> a -> a) -> Tree a -> a # foldl1 :: (a -> a -> a) -> Tree a -> a # elem :: Eq a => a -> Tree a -> Bool # maximum :: Ord a => Tree a -> a # | |
Traversable Tree | |
Eq a => Eq (Tree a) | |
Ord a => Ord (Tree a) | |
Show a => Show (Tree a) | |
NoSource src => Writeable (XMLs src) Source # | |
NoSource src => Writeable (XML src) Source # | |
(Ord err, Ord src, NoSource src, Stream (Seq (XML src)), Token (Seq (XML src)) ~ Tree (Sourced src Node)) => Sym_RNC (Parsec err (XMLs src)) Source # | |
Defined in Symantic.RNC.Validate namespace :: Maybe NCName -> Namespace -> Parsec err (XMLs src) () Source # element :: QName -> Parsec err (XMLs src) a -> Parsec err (XMLs src) a Source # attribute :: QName -> Parsec err (XMLs src) a -> Parsec err (XMLs src) a Source # any :: Parsec err (XMLs src) () Source # anyElem :: Namespace -> (NCName -> Parsec err (XMLs src) a) -> Parsec err (XMLs src) a Source # escapedText :: Parsec err (XMLs src) EscapedText Source # text :: Parsec err (XMLs src) Text Source # fail :: Parsec err (XMLs src) a Source # try :: Parsec err (XMLs src) a -> Parsec err (XMLs src) a Source # option :: a -> Parsec err (XMLs src) a -> Parsec err (XMLs src) a Source # optional :: Parsec err (XMLs src) a -> Parsec err (XMLs src) (Maybe a) Source # choice :: [Parsec err (XMLs src) a] -> Parsec err (XMLs src) a Source # intermany :: [Parsec err (XMLs src) a] -> Parsec err (XMLs src) [a] Source # manySeq :: Parsec err (XMLs src) a -> Parsec err (XMLs src) (Seq a) Source # someSeq :: Parsec err (XMLs src) a -> Parsec err (XMLs src) (Seq a) Source # | |
(Ord err, Ord src, Stream (Seq (XML src))) => Sym_Permutation (ParsecT err (XMLs src) m) Source # | |
Defined in Symantic.RNC.Validate runPermutation :: Permutation (ParsecT err (XMLs src) m) a -> ParsecT err (XMLs src) m a Source # toPermutation :: ParsecT err (XMLs src) m a -> Permutation (ParsecT err (XMLs src) m) a Source # toPermutationWithDefault :: a -> ParsecT err (XMLs src) m a -> Permutation (ParsecT err (XMLs src) m) a Source # (<$$>) :: (a -> b) -> ParsecT err (XMLs src) m a -> Permutation (ParsecT err (XMLs src) m) b Source # (<$?>) :: (a -> b) -> (a, ParsecT err (XMLs src) m a) -> Permutation (ParsecT err (XMLs src) m) b Source # (<$*>) :: ([a] -> b) -> ParsecT err (XMLs src) m a -> Permutation (ParsecT err (XMLs src) m) b Source # (<$:>) :: (Seq a -> b) -> ParsecT err (XMLs src) m a -> Permutation (ParsecT err (XMLs src) m) b Source # (<||>) :: Permutation (ParsecT err (XMLs src) m) (a -> b) -> ParsecT err (XMLs src) m a -> Permutation (ParsecT err (XMLs src) m) b Source # (<|?>) :: Permutation (ParsecT err (XMLs src) m) (a -> b) -> (a, ParsecT err (XMLs src) m a) -> Permutation (ParsecT err (XMLs src) m) b Source # (<|*>) :: Permutation (ParsecT err (XMLs src) m) ([a] -> b) -> ParsecT err (XMLs src) m a -> Permutation (ParsecT err (XMLs src) m) b Source # (<|:>) :: Permutation (ParsecT err (XMLs src) m) (Seq a -> b) -> ParsecT err (XMLs src) m a -> Permutation (ParsecT err (XMLs src) m) b Source # | |
(Ord err, Ord src, Stream (Seq (XML src))) => Sym_Rule (ParsecT err (XMLs src) m) Source # | |
type Permutation (ParsecT err (XMLs src) m) Source # | |
Defined in Symantic.RNC.Validate |