Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- maybeAutoAdvance :: Maybe Int -> Chan PresentationCommand -> (Chan PresentationCommand -> IO a) -> IO a
- autoAdvance :: Int -> Chan PresentationCommand -> (Chan PresentationCommand -> IO a) -> IO a
Documentation
maybeAutoAdvance :: Maybe Int -> Chan PresentationCommand -> (Chan PresentationCommand -> IO a) -> IO a Source #
Utility to make auto advancing optional.
autoAdvance :: Int -> Chan PresentationCommand -> (Chan PresentationCommand -> IO a) -> IO a Source #
This function takes an existing channel for presentation commands
(presumably coming from human input) and creates a new one that also sends
a Forward
command if nothing happens for N seconds.