uniform-io-1.2.0.0: Uniform IO over files, network, anything.

Safe HaskellSafe
LanguageHaskell2010

System.IO.Uniform.HandlePair

Description

IO into a pair of Haskell handles, like the ones created with stdin and stdout of a forked process.

Synopsis

Documentation

data HandlePair Source

A pair of handles, the first for input, and the second for output.

Instances

UniformIO HandlePair Source

UniformIO that reads from stdin and writes to stdout.

fromHandles :: Handle -> Handle -> HandlePair Source

fromHandles inputHandler outputHandler

Creates a uniform io target from a pair of handlers.