Hedi-0.1: Line oriented editor

Eval

Description

The logic of each of the available commands

Synopsis

Documentation

evalSource

Arguments

:: Ctx m w 
=> CompleteCommand

the 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

Arguments

:: Ctx m w 
=> String

filename

-> 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