machines-io-0.0.0.1: IO utilities for the machines library

Safe HaskellNone
LanguageHaskell2010

System.IO.Machine

Documentation

data IODataMode a Source

Constructors

IODataMode (Handle -> IO a) (Handle -> a -> IO ()) 

type IOSink k = forall a. ProcessT IO k a Source

type IOSource a = forall k. MachineT IO k a Source

sourceIO :: MonadIO m => m r -> (r -> m Bool) -> (r -> m a) -> forall k. MachineT m k a Source

sinkHandleWith :: IOData a => (Handle -> a -> IO ()) -> Handle -> IOSink a Source