imm-1.2.1.0: Execute arbitrary actions for each unread element of RSS/Atom feeds

Safe HaskellNone
LanguageHaskell98

Imm.XML

Contents

Description

DSL/interpreter model for parsing XML into a Feed

Synopsis

Types

data XmlParserF next Source #

XML parsing DSL

Instances

Functor XmlParserF Source # 

Methods

fmap :: (a -> b) -> XmlParserF a -> XmlParserF b #

(<$) :: a -> XmlParserF b -> XmlParserF a #

Monad m => PairingM (CoXmlParserF m) XmlParserF m Source # 

Methods

pairM :: (a -> b -> m r) -> CoXmlParserF m a -> XmlParserF b -> m r Source #

newtype CoXmlParserF m a Source #

XML parsing interpreter

Constructors

CoXmlParserF 

Instances

Functor m => Functor (CoXmlParserF m) Source # 

Methods

fmap :: (a -> b) -> CoXmlParserF m a -> CoXmlParserF m b #

(<$) :: a -> CoXmlParserF m b -> CoXmlParserF m a #

Monad m => PairingM (CoXmlParserF m) XmlParserF m Source # 

Methods

pairM :: (a -> b -> m r) -> CoXmlParserF m a -> XmlParserF b -> m r Source #

Primitives

parseXml :: (MonadFree f m, XmlParserF :<: f, MonadThrow m) => URI -> LByteString -> m Feed Source #

Parse XML into a Feed