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