Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ControlComm
- type ControlBox m = MonadConc m => Cont m (Box (STM m) ControlComm ControlComm)
- data ControlConfig
- defaultControlConfig :: ControlConfig
- consoleControlBox :: ControlBox IO
- parseControlComms :: Parser ControlComm
- controlBox :: ControlConfig -> IO a -> Box (STM IO) ControlComm ControlComm -> IO Bool
- runControlBox :: ControlConfig -> IO () -> IO ()
- testBox :: IO Bool
- timeOut :: Double -> ControlBox m
Documentation
data ControlComm Source #
Instances
type ControlBox m = MonadConc m => Cont m (Box (STM m) ControlComm ControlComm) Source #
data ControlConfig Source #
Instances
Eq ControlConfig Source # | |
Defined in Box.Control (==) :: ControlConfig -> ControlConfig -> Bool # (/=) :: ControlConfig -> ControlConfig -> Bool # | |
Show ControlConfig Source # | |
Defined in Box.Control showsPrec :: Int -> ControlConfig -> ShowS # show :: ControlConfig -> String # showList :: [ControlConfig] -> ShowS # |
controlBox :: ControlConfig -> IO a -> Box (STM IO) ControlComm ControlComm -> IO Bool Source #
an effect that can be started and stopped committer is an existence test controlBox :: (MonadConc m) => ControlConfig -> m () -> ControlBox m
runControlBox :: ControlConfig -> IO () -> IO () Source #
send Start, wait for a Ready signal, run action, wait x secs, then send Quit
timeOut :: Double -> ControlBox m Source #