Safe Haskell | None |
---|---|
Language | Haskell2010 |
Unlifted versions of all FFI methods.
Synopsis
- data InputResult a
- = InterruptResult
- | EofResult
- | LineResult !a
- addHistory :: MonadIO m => Text -> m ()
- clearScreen :: MonadIO m => m ()
- getInputLine :: MonadIO m => Text -> m (InputResult Text)
- historyLoad :: MonadIO m => FilePath -> m ()
- historySave :: MonadIO m => FilePath -> m ()
- printKeycodes :: MonadIO m => m ()
- setCompletion :: MonadUnliftIO m => (Text -> m [Text]) -> m ()
- setMultiline :: MonadIO m => Bool -> m ()
- stifleHistory :: MonadIO m => Int -> m ()
Documentation
data InputResult a Source #
Result of getInputLine.
InterruptResult | ctrl+c |
EofResult | ctrl+d |
LineResult !a |
Instances
addHistory :: MonadIO m => Text -> m () Source #
Add to current history.
clearScreen :: MonadIO m => m () Source #
Clear the screen.
getInputLine :: MonadIO m => Text -> m (InputResult Text) Source #
Run the prompt, yielding a string.
historyLoad :: MonadIO m => FilePath -> m () Source #
Load history from a file.
historySave :: MonadIO m => FilePath -> m () Source #
Save history to a file.
printKeycodes :: MonadIO m => m () Source #
Print keycodes.
setCompletion :: MonadUnliftIO m => (Text -> m [Text]) -> m () Source #
Set the current completion function.
setMultiline :: MonadIO m => Bool -> m () Source #
Enable/Disable multiline input.
stifleHistory :: MonadIO m => Int -> m () Source #
Limit the maximum history length.