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

Safe HaskellNone
LanguageHaskell98

Imm.Hooks

Contents

Description

DSL/interpreter model for hooks, ie various events that can trigger arbitrary actions

Synopsis

Types

data HooksF next Source #

Hooks DSL

Constructors

OnNewElement Feed FeedElement next 

Instances

Functor HooksF Source # 

Methods

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

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

Monad m => PairingM (CoHooksF m) HooksF m Source # 

Methods

pairM :: (a -> b -> m r) -> CoHooksF m a -> HooksF b -> m r Source #

data CoHooksF m a Source #

Hooks interpreter

Constructors

CoHooksF 

Fields

Instances

Functor m => Functor (CoHooksF m) Source # 

Methods

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

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

Monad m => PairingM (CoHooksF m) HooksF m Source # 

Methods

pairM :: (a -> b -> m r) -> CoHooksF m a -> HooksF b -> m r Source #

Primitives