Safe Haskell | None |
---|---|
Language | Haskell98 |
DSL/interpreter model for parsing XML into a Feed
- data XmlParserF next = ParseXml URI LByteString (Either SomeException Feed -> next)
- newtype CoXmlParserF m a = CoXmlParserF {
- parseXmlH :: URI -> LByteString -> m (Either SomeException Feed, a)
- parseXml :: (MonadFree f m, XmlParserF :<: f, MonadThrow m) => URI -> LByteString -> m Feed
Types
data XmlParserF next Source #
XML parsing DSL
ParseXml URI LByteString (Either SomeException Feed -> next) |
Functor XmlParserF Source # | |
Monad m => PairingM (CoXmlParserF m) XmlParserF m Source # | |
newtype CoXmlParserF m a Source #
XML parsing interpreter
CoXmlParserF | |
|
Functor m => Functor (CoXmlParserF m) Source # | |
Monad m => PairingM (CoXmlParserF m) XmlParserF m Source # | |
Primitives
parseXml :: (MonadFree f m, XmlParserF :<: f, MonadThrow m) => URI -> LByteString -> m Feed Source #
Parse XML into a Feed