Safe Haskell | None |
---|---|
Language | Haskell98 |
Hooks module abstracts over the main behavior of the program.
This module follows the Handle pattern.
import qualified Imm.Hooks as Hooks
Synopsis
- newtype Handle m = Handle {
- processNewElement :: Feed -> FeedElement -> m ()
- onNewElement :: Monad m => Handle m -> Handle m -> Feed -> FeedElement -> m ()
Types
Handle | |
|
Primitives
onNewElement :: Monad m => Handle m -> Handle m -> Feed -> FeedElement -> m () Source #