Safe Haskell | None |
---|---|
Language | Haskell98 |
DSL/interpreter model for hooks, ie various events that can trigger arbitrary actions
- data HooksF next = OnNewElement Feed FeedElement next
- data CoHooksF m a = CoHooksF {
- onNewElementH :: Feed -> FeedElement -> m a
- onNewElement :: (MonadFree f m, LoggerF :<: f, HooksF :<: f) => Feed -> FeedElement -> m ()
Types
Hooks DSL
OnNewElement Feed FeedElement next |
Hooks interpreter
CoHooksF | |
|
Primitives
onNewElement :: (MonadFree f m, LoggerF :<: f, HooksF :<: f) => Feed -> FeedElement -> m () Source #