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

Safe HaskellNone
LanguageHaskell98

Imm.Database.FeedTable

Contents

Description

Feed table definitions. This is a specialization of Imm.Database.

Synopsis

Types

newtype FeedID Source #

Unique key in feeds table

Constructors

FeedID URI 
Instances
Eq FeedID Source # 
Instance details

Defined in Imm.Database.FeedTable

Methods

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

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

Ord FeedID Source # 
Instance details

Defined in Imm.Database.FeedTable

Show FeedID Source # 
Instance details

Defined in Imm.Database.FeedTable

ToJSON FeedID Source # 
Instance details

Defined in Imm.Database.FeedTable

FromJSON FeedID Source # 
Instance details

Defined in Imm.Database.FeedTable

Pretty FeedID Source # 
Instance details

Defined in Imm.Database.FeedTable

Methods

pretty :: FeedID -> Doc ann #

prettyList :: [FeedID] -> Doc ann #

data FeedTable Source #

Singleton type to represent feeds table

Constructors

FeedTable 
Instances
Show FeedTable Source # 
Instance details

Defined in Imm.Database.FeedTable

Pretty FeedTable Source # 
Instance details

Defined in Imm.Database.FeedTable

Methods

pretty :: FeedTable -> Doc ann #

prettyList :: [FeedTable] -> Doc ann #

Table FeedTable Source # 
Instance details

Defined in Imm.Database.FeedTable

Associated Types

type Key FeedTable :: Type Source #

type Entry FeedTable :: Type Source #

Methods

rep :: FeedTable Source #

type Key FeedTable Source # 
Instance details

Defined in Imm.Database.FeedTable

type Entry FeedTable Source # 
Instance details

Defined in Imm.Database.FeedTable

data FeedStatus Source #

Constructors

Unknown 
New 
LastUpdate UTCTime 
Instances
Pretty FeedStatus Source # 
Instance details

Defined in Imm.Database.FeedTable

Methods

pretty :: FeedStatus -> Doc ann #

prettyList :: [FeedStatus] -> Doc ann #

newtype Database Source #

Constructors

Database [DatabaseEntry] 
Instances
Eq Database Source # 
Instance details

Defined in Imm.Database.FeedTable

Show Database Source # 
Instance details

Defined in Imm.Database.FeedTable

Primitives

markAsRead :: (MonadTime m, MonadThrow m) => Handle m -> Handle m FeedTable -> FeedID -> m () Source #

Set the last check time to now

markAsUnread :: MonadThrow m => Handle m -> Handle m FeedTable -> FeedID -> m () Source #

Unset feed's last update and remove all read hashes