Safe Haskell | None |
---|---|
Language | Haskell2010 |
Convenience module for debugging streams. Provides stream transformers
that wrap InputStream
s and OutputStream
s, sending a description of all
data to an OutputStream
for debugging.
Synopsis
- debugInput :: (a -> ByteString) -> ByteString -> OutputStream ByteString -> InputStream a -> IO (InputStream a)
- debugOutput :: (a -> ByteString) -> ByteString -> OutputStream ByteString -> OutputStream a -> IO (OutputStream a)
- debugInputBS :: ByteString -> OutputStream ByteString -> InputStream ByteString -> IO (InputStream ByteString)
- debugOutputBS :: ByteString -> OutputStream ByteString -> OutputStream ByteString -> IO (OutputStream ByteString)
Debuggers
:: (a -> ByteString) | function to convert stream elements to
|
-> ByteString | name of this debug stream, will be prepended to debug output |
-> OutputStream ByteString | stream the debug info will be sent to |
-> InputStream a | input stream |
-> IO (InputStream a) |
:: (a -> ByteString) | function to convert stream
elements to |
-> ByteString | name of this debug stream, will be prepended to debug output |
-> OutputStream ByteString | debug stream |
-> OutputStream a | output stream |
-> IO (OutputStream a) |
:: ByteString | name of this debug stream, will be prepended to debug output |
-> OutputStream ByteString | stream the debug info will be sent to |
-> InputStream ByteString | input stream |
-> IO (InputStream ByteString) |
:: ByteString | name of this debug stream, will be prepended to debug output |
-> OutputStream ByteString | stream the debug info will be sent to |
-> OutputStream ByteString | output stream |
-> IO (OutputStream ByteString) |