Hedi-0.1.1: Line oriented editorSource codeContentsIndex
Operation
Description
Functions for read-eval-do managing
Synopsis
modified :: Ctx m => Editor m Bool
resetpending :: Ctx m => Editor m ()
evalSensible :: Ctx m => Command -> Editor m () -> Editor m ()
checkPendings :: Ctx m => Editor m () -> Editor m ()
commandMode :: Ctx m => (String -> Either String CompleteCommand) -> (CompleteCommand -> Editor m ()) -> Editor m ()
commandLoop :: Ctx m => (String -> Either String CompleteCommand) -> (CompleteCommand -> Editor m ()) -> Editor m ()
inputMode :: Ctx m => Editor m [String]
Documentation
modified :: Ctx m => Editor m BoolSource
a real check for file modification
resetpending :: Ctx m => Editor m ()Source
evalSensible :: Ctx m => Command -> Editor m () -> Editor m ()Source
a wrapper for commands evaluation which can discard changes
checkPendings :: Ctx m => Editor m () -> Editor m ()Source
a wrapper for commands evaluation which cannot discard changes
commandModeSource
:: Ctx m
=> String -> Either String CompleteCommandthe parser for the command on the line
-> CompleteCommand -> Editor m ()the evaluator for the parsed command
-> Editor m ()updated beast
a step in main mode for the editor
commandLoopSource
:: Ctx m
=> String -> Either String CompleteCommandthe parser for the command on the line
-> CompleteCommand -> Editor m ()the evaluator for the parsed command
-> Editor m ()updated beast
looping in main mode with error log on output
inputMode :: Ctx m => Editor m [String]Source
the secondary mode for the editor where lines are inserted as input. It returns the lines.Use CTRL-D to exit
Produced by Haddock version 2.3.0