Hedi-0.1.1: Line oriented editorSource codeContentsIndex
Eval
Description
The logic of each of the available commands
Synopsis
eval :: Ctx m => CompleteCommand -> Editor m ()
writefail :: Ctx m => Either String () -> Editor m ()
write :: Ctx m => String -> Editor m ()
getname :: Ctx m => Editor m String -> Editor m String
Documentation
evalSource
:: Ctx m
=> CompleteCommandthe command to match for execution
-> Editor m ()monading ..
every command is run with eval. See Command datatype for docs
writefail :: Ctx m => Either String () -> Editor m ()Source
throw a writerSio error to Editor
writeSource
:: Ctx m
=> Stringfilename
-> Editor m ()monading
dump the engine content to a file via writefileSio
getname :: Ctx m => Editor m String -> Editor m StringSource
get the filename defaulting to some other action to produce one
Produced by Haddock version 2.3.0