Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Callback = Callback {
- _executable :: FilePath
- _arguments :: [Text]
- data CallbackMessage = CallbackMessage {}
- runCallback :: MonadIO m => Handle m -> Callback -> CallbackMessage -> m (Either (Callback, Int, LByteString, LByteString) (Callback, LByteString, LByteString))
Documentation
External program run for each feed element.
Data is passed to that program through standard input (stdin
).
Callback | |
|
Instances
Generic Callback Source # | |
Read Callback Source # | |
Show Callback Source # | |
FromDhall Callback Source # | |
Defined in Imm.Callback autoWith :: InputNormalizer -> Decoder Callback # | |
Eq Callback Source # | |
Ord Callback Source # | |
Defined in Imm.Callback | |
Pretty Callback Source # | |
Defined in Imm.Callback | |
type Rep Callback Source # | |
Defined in Imm.Callback type Rep Callback = D1 ('MetaData "Callback" "Imm.Callback" "imm-2.1.2.0-D2NMr4mlUE8FsGQYPYqh5Y" '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
runCallback :: MonadIO m => Handle m -> Callback -> CallbackMessage -> m (Either (Callback, Int, LByteString, LByteString) (Callback, LByteString, LByteString)) Source #