Data.Streaming.Process.Internal

streaming-commons-0.2.2.6: Common lower-level functions needed by various streaming data libraries

Safe Haskell | Safe-Inferred
Language | Haskell2010

Data.Streaming.Process.Internal

Synopsis

- data StreamingProcessHandle = StreamingProcessHandle ProcessHandle (TMVar ExitCode) (IO ())
- class InputSource a where
  - isStdStream :: (Maybe Handle -> IO a, Maybe StdStream)
- class OutputSink a where
  - osStdStream :: (Maybe Handle -> IO a, Maybe StdStream)

# Documentation

data StreamingProcessHandle #

Wraps up the standard `ProcessHandle` to avoid the `waitForProcess` deadlock. See the linked documentation from the module header for more information.

Since 0.1.4

Constructors

StreamingProcessHandle ProcessHandle (TMVar ExitCode) (IO ()) |

class InputSource a where #

Class for all things which can be used to provide standard input.

Since 0.1.4

Methods

isStdStream :: (Maybe Handle -> IO a, Maybe StdStream) #

#### Instances

Instances details

InputSource Handle # |
Instance details Defined in Data.Streaming.Process.Internal Methods isStdStream :: (Maybe Handle -> IO Handle, Maybe StdStream) #
InputSource ClosedStream # |
Instance details Defined in Data.Streaming.Process Methods isStdStream :: (Maybe Handle -> IO ClosedStream, Maybe StdStream) #
InputSource Inherited # |
Instance details Defined in Data.Streaming.Process Methods isStdStream :: (Maybe Handle -> IO Inherited, Maybe StdStream) #
InputSource UseProvidedHandle # |
Instance details Defined in Data.Streaming.Process Methods isStdStream :: (Maybe Handle -> IO UseProvidedHandle, Maybe StdStream) #

class OutputSink a where #

Class for all things which can be used to consume standard output or error.

Since 0.1.4

Methods

osStdStream :: (Maybe Handle -> IO a, Maybe StdStream) #

#### Instances

Instances details

OutputSink Handle # |
Instance details Defined in Data.Streaming.Process.Internal Methods osStdStream :: (Maybe Handle -> IO Handle, Maybe StdStream) #
OutputSink ClosedStream # |
Instance details Defined in Data.Streaming.Process Methods osStdStream :: (Maybe Handle -> IO ClosedStream, Maybe StdStream) #
OutputSink Inherited # |
Instance details Defined in Data.Streaming.Process Methods osStdStream :: (Maybe Handle -> IO Inherited, Maybe StdStream) #
OutputSink UseProvidedHandle # |
Instance details Defined in Data.Streaming.Process Methods osStdStream :: (Maybe Handle -> IO UseProvidedHandle, Maybe StdStream) #