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

Safe HaskellNone
LanguageHaskell98

Imm.Core

Contents

Synopsis

Types

data FeedRef Source #

Feed reference: either its URI, or its UID from database

Instances
Eq FeedRef Source # 
Instance details

Defined in Imm.Feed

Methods

(==) :: FeedRef -> FeedRef -> Bool #

(/=) :: FeedRef -> FeedRef -> Bool #

Show FeedRef Source # 
Instance details

Defined in Imm.Feed

Pretty FeedRef Source # 
Instance details

Defined in Imm.Feed

Methods

pretty :: FeedRef -> Doc ann #

prettyList :: [FeedRef] -> Doc ann #

Actions

subscribe :: MonadCatch m => Handle m -> Handle m FeedTable -> URI -> Set Text -> m () Source #

Register the given feed URI in database

showFeed :: MonadThrow m => Handle m -> Handle m FeedTable -> [FeedID] -> m () Source #

Print database status for given feed(s)

check :: (MonadAsync m, MonadCatch m) => Handle m -> Handle m FeedTable -> Handle m -> Handle m -> [FeedID] -> m () Source #

Check for unread elements without processing them

run :: (MonadTime m, MonadAsync m, MonadCatch m) => Handle m -> Handle m FeedTable -> Handle m -> Handle m -> Handle m -> [FeedID] -> m () Source #

importOPML :: MonadCatch m => Handle m -> Handle m FeedTable -> ConduitT () ByteString m () -> m () Source #

subscribe to all feeds described by the OPML document provided in input