Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Output
- handleInputData :: forall m. MonadIO m => (ByteString -> m [ByteString]) -> (FilenameHandlingFromFiles -> ByteString -> Int -> ByteString -> m [ByteString]) -> (ByteString -> IOException -> Maybe IOException -> m [ByteString]) -> InputData m () -> Producer Output m ()
- runOutputProducer :: forall m. MonadIO m => Producer Output m () -> m ()
Documentation
Sum-type to represent where a given ByteString
should be output, whether
it is stdout or stderr.
:: forall m. MonadIO m | |
=> (ByteString -> m [ByteString]) | Function to use for conversion for a line from stdin. |
-> (FilenameHandlingFromFiles -> ByteString -> Int -> ByteString -> m [ByteString]) | Function to use for conversion for a line from a normal file. |
-> (ByteString -> IOException -> Maybe IOException -> m [ByteString]) | Function to use for conversion for an io error. |
-> InputData m () | All of the input lines. |
-> Producer Output m () |