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

Safe HaskellNone
LanguageHaskell2010

System.IO.Machine

Documentation

type DataModeIO m a = MonadIO m => (Handle -> m a, Handle -> a -> m ()) Source

type SinkIO m k = MonadIO m => forall a. ProcessT m k a Source

type SourceIO m a = MonadIO m => forall k. MachineT m k a Source

type IODataMode a = (Handle -> IO a, Handle -> a -> IO ()) Source

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

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

sourceIOWith :: m r -> (r -> m Bool) -> (r -> m a) -> SourceIO m a Source

sinkIO :: (a -> IO ()) -> SinkIO m a Source

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

filteredIO :: (a -> IO Bool) -> ProcessT IO a a Source