io-streams-1.1.4.6: Simple, composable, and easy-to-use stream I/O

Safe HaskellNone

System.IO.Streams.Debug

Contents

Description

Convenience module for debugging streams. Provides stream transformers that wrap InputStreams and OutputStreams, sending a description of all data to an OutputStream for debugging.

Synopsis

Debuggers

debugInputSource

Arguments

:: (a -> ByteString)

function to convert stream elements to ByteString

-> 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) 

debugOutputSource

Arguments

:: (a -> ByteString)

function to convert stream elements to ByteString

-> ByteString

name of this debug stream, will be prepended to debug output

-> OutputStream ByteString

debug stream

-> OutputStream a

output stream

-> IO (OutputStream a) 

debugInputBSSource

Arguments

:: 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) 

debugOutputBSSource

Arguments

:: 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)