imm-2.1.3.0: Execute arbitrary actions for each item from RSS/Atom feeds
Safe HaskellSafe-Inferred
LanguageHaskell2010

Imm.Callback

Synopsis

Documentation

data Callback Source #

External program run for each feed element.

Data is passed to that program through standard input (stdin).

Constructors

Callback 

Instances

Instances details
Generic Callback Source # 
Instance details

Defined in Imm.Callback

Associated Types

type Rep Callback :: Type -> Type #

Methods

from :: Callback -> Rep Callback x #

to :: Rep Callback x -> Callback #

Read Callback Source # 
Instance details

Defined in Imm.Callback

Show Callback Source # 
Instance details

Defined in Imm.Callback

FromDhall Callback Source # 
Instance details

Defined in Imm.Callback

Eq Callback Source # 
Instance details

Defined in Imm.Callback

Ord Callback Source # 
Instance details

Defined in Imm.Callback

Pretty Callback Source # 
Instance details

Defined in Imm.Callback

Methods

pretty :: Callback -> Doc ann #

prettyList :: [Callback] -> Doc ann #

type Rep Callback Source # 
Instance details

Defined in Imm.Callback

type Rep Callback = D1 ('MetaData "Callback" "Imm.Callback" "imm-2.1.3.0-D3c8Vn1SRDNHimeVgBOHyG" 'False) (C1 ('MetaCons "Callback" 'PrefixI 'True) (S1 ('MetaSel ('Just "_executable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "_arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text])))

data CallbackMessage Source #

Data structure passed to the external program, through JSON format.

The data schema is described in file schema/imm.json, provided with this library.

Instances

Instances details
FromJSON CallbackMessage Source # 
Instance details

Defined in Imm.Callback

ToJSON CallbackMessage Source # 
Instance details

Defined in Imm.Callback

Generic CallbackMessage Source # 
Instance details

Defined in Imm.Callback

Associated Types

type Rep CallbackMessage :: Type -> Type #

Show CallbackMessage Source # 
Instance details

Defined in Imm.Callback

Eq CallbackMessage Source # 
Instance details

Defined in Imm.Callback

Ord CallbackMessage Source # 
Instance details

Defined in Imm.Callback

Pretty (PrettyShort CallbackMessage) Source # 
Instance details

Defined in Imm.Callback

type Rep CallbackMessage Source # 
Instance details

Defined in Imm.Callback

type Rep CallbackMessage = D1 ('MetaData "CallbackMessage" "Imm.Callback" "imm-2.1.3.0-D3c8Vn1SRDNHimeVgBOHyG" 'False) (C1 ('MetaCons "CallbackMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "_callbackFeedLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FeedLocation) :*: (S1 ('MetaSel ('Just "_callbackFeedDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FeedDefinition) :*: S1 ('MetaSel ('Just "_callbackFeedItem") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FeedItem))))