Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ProcessOutput a :: Effect where
- Chunk :: ByteString -> ByteString -> ProcessOutput a m ([a], ByteString)
Documentation
data ProcessOutput a :: Effect where Source #
This effect is used by the effect Process
to accumulate and decode chunks of ByteString
s, for
example using a parser.
The interpreter may be stateful or stateless, since the constructor Chunk
is expected to be called with both the
accumulated unprocessed output as well as the new chunk.
Chunk | Add a chunk of output to the accumulator, returning any number of successfully parsed values and the leftover output. |
|
Instances
type DefiningModule ProcessOutput Source # | |
Defined in Polysemy.Process.Effect.ProcessOutput |