Cabal-1.20.0.0: A framework for packaging Haskell software

Safe HaskellSafe-Inferred

Distribution.Compat.CreatePipe

Synopsis

Documentation

tee

Arguments

:: Handle

input

-> [(Handle, Bool)]

output, close?

-> IO () 

Copy the contents of the input handle to the output handles, like the Unix command. The input handle is processed in another thread until EOF is reached; tee returns immediately. The Bool with each output handle indicates if it should be closed when EOF is reached. Synchronization can be achieved by blocking on an output handle.