imm-1.9.0.0: Execute arbitrary callbacks for each element of RSS/Atom feeds

Safe HaskellNone
LanguageHaskell2010

Imm.Database.Feed

Contents

Description

Feed table definitions.

Synopsis

Types

newtype JsonElement Source #

Newtype wrapper to provide FromJSON and ToJSON instances for FeedElement

Constructors

JsonElement 

data Entry Source #

Instances
Eq Entry Source # 
Instance details

Defined in Imm.Database.Feed

Methods

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

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

Ord Entry Source # 
Instance details

Defined in Imm.Database.Feed

Methods

compare :: Entry -> Entry -> Ordering #

(<) :: Entry -> Entry -> Bool #

(<=) :: Entry -> Entry -> Bool #

(>) :: Entry -> Entry -> Bool #

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

max :: Entry -> Entry -> Entry #

min :: Entry -> Entry -> Entry #

Show Entry Source # 
Instance details

Defined in Imm.Database.Feed

Methods

showsPrec :: Int -> Entry -> ShowS #

show :: Entry -> String #

showList :: [Entry] -> ShowS #

ToJSON Entry Source # 
Instance details

Defined in Imm.Database.Feed

FromJSON Entry Source # 
Instance details

Defined in Imm.Database.Feed

data FeedStatus Source #

Constructors

Unknown 
New 
LastUpdate UTCTime 
Instances
Pretty FeedStatus Source # 
Instance details

Defined in Imm.Database.Feed

Methods

pretty :: FeedStatus -> Doc ann #

prettyList :: [FeedStatus] -> Doc ann #

data EntryKey Source #

Instances
Eq EntryKey Source # 
Instance details

Defined in Imm.Database.Feed

Ord EntryKey Source # 
Instance details

Defined in Imm.Database.Feed

Show EntryKey Source # 
Instance details

Defined in Imm.Database.Feed

Pretty EntryKey Source # 
Instance details

Defined in Imm.Database.Feed

Methods

pretty :: EntryKey -> Doc ann #

prettyList :: [EntryKey] -> Doc ann #

data Handle m Source #

Constructors

Handle 

Fields

readOnly :: Monad m => Handle m -> Handle m -> Handle m Source #

Low-level primitives

fetch1 :: Monad m => MonadThrow m => Handle m -> EntryKey -> m (Int, Entry) Source #

fetch :: Monad m => Handle m -> [EntryKey] -> m (Map EntryKey (Int, Entry)) Source #

fetchQuery :: Monad m => Handle m -> (Int -> Entry -> Bool) -> m (Map Int Entry) Source #

update :: Monad m => Handle m -> [EntryKey] -> (Entry -> Entry) -> m () Source #

insert :: MonadThrow m => Handle m -> Handle m -> Entry -> m Int Source #

delete1 :: Monad m => Handle m -> Handle m -> EntryKey -> m () Source #

delete :: Monad m => Handle m -> Handle m -> [EntryKey] -> m () Source #

purge :: Monad m => Handle m -> Handle m -> m () Source #

commit :: Monad m => Handle m -> Handle m -> m () Source #

High-level queries