roundtrip-xml-0.1.0.0: Bidirectional (de-)serialization for XML.

Text.Roundtrip.Xml.Parser

Synopsis

Documentation

data GenXmlParser s m a Source

Instances

(Monad m, Stream s m RtEventWithPos) => ProductFunctor (GenXmlParser s m) 
(Monad m, Stream s m RtEventWithPos) => Alternative (GenXmlParser s m) 
(Monad m, Stream s m RtEventWithPos) => Syntax (GenXmlParser s m) 
(Monad m, Stream s m RtEventWithPos) => IsoFunctor (GenXmlParser s m) 
(Monad m, Stream s m RtEventWithPos) => XmlSyntax (GenXmlParser s m) 

type XmlParser a = GenXmlParser [RtEventWithPos] Identity aSource

data WithPos a Source

Instances

Monad m => Stream PStreamPos (StateT PStreamState (Iteratee RtEventWithPos m)) RtEventWithPos 
Pretty a => Show (WithPos a) 
Pretty a => Pretty (WithPos a) 

type Line = Int

type Column = Int

data ParseError

The abstract data type ParseError represents parse errors. It provides the source position (SourcePos) of the error and a list of error messages (Message). A ParseError can be returned by the function Text.Parsec.Prim.parse. ParseError is an instance of the Show class.

Instances