HTTP-4000.4.1: A library for client-side HTTP
CopyrightSee LICENSE file
LicenseBSD
MaintainerGanesh Sittampalam <ganesh@earth.li>
Stabilityexperimental
Portabilitynon-portable (not tested)
Safe HaskellSafe-Inferred
LanguageHaskell98

Network.StreamDebugger

Description

Implements debugging of Streams. Originally part of Gray's/Bringert's HTTP module.

Synopsis

Documentation

data StreamDebugger x #

Allows stream logging. Refer to debugStream below.

Instances

Instances details
Stream x => Stream (StreamDebugger x) # 
Instance details

Defined in Network.StreamDebugger

Methods

readLine :: StreamDebugger x -> IO (Result String) #

readBlock :: StreamDebugger x -> Int -> IO (Result String) #

writeBlock :: StreamDebugger x -> String -> IO (Result ()) #

close :: StreamDebugger x -> IO () #

closeOnEnd :: StreamDebugger x -> Bool -> IO () #

debugStream :: Stream a => FilePath -> a -> IO (StreamDebugger a) #

Wraps a stream with logging I/O. The first argument is a filename which is opened in AppendMode.

debugByteStream :: HStream ty => FilePath -> HandleStream ty -> IO (HandleStream ty) #