Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- prompt :: (MonadIO m, MonadMask m) => String -> m String
- promptInitial :: (MonadIO m, MonadMask m) => String -> String -> m String
- promptBuffered :: (MonadIO m, MonadMask m) => String -> m String
- promptNonEmpty :: (MonadIO m, MonadMask m) => String -> m String
- promptChar :: (MonadIO m, MonadMask m) => String -> m Char
- promptEnter :: (MonadIO m, MonadMask m) => String -> m ()
- promptPassword :: (MonadIO m, MonadMask m) => String -> m String
- yesNo :: (MonadIO m, MonadMask m) => String -> m Bool
- yesNoDefault :: (MonadIO m, MonadMask m) => Bool -> String -> m Bool
Documentation
prompt :: (MonadIO m, MonadMask m) => String -> m String Source #
prompt which drops buffered input (using timedInput)
Ignores buffered input lines (ie if input line gotten in under 5ms)
promptInitial :: (MonadIO m, MonadMask m) => String -> String -> m String Source #
reads string with initial input (using timedInput)
promptBuffered :: (MonadIO m, MonadMask m) => String -> m String Source #
reads string with buffering
promptNonEmpty :: (MonadIO m, MonadMask m) => String -> m String Source #
reads non-empty string (using nonEmptyInput)