patat-0.12.0.0: Terminal-based presentations using Pandoc
Safe HaskellSafe-Inferred
LanguageHaskell2010

Patat.AutoAdvance

Synopsis

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.