Safe Haskell | Safe-Inferred |
---|
Undo and redo cmds and support.
Synopsis
- undo :: Cmd.CmdT IO ()
- redo :: Cmd.CmdT IO ()
- maintain_history :: Ui.State -> Cmd.State -> [Update.UiUpdate] -> IO Cmd.State
- check_save_history :: Cmd.State -> IO (Maybe.Maybe Text)
Documentation
maintain_history :: Ui.State -> Cmd.State -> [Update.UiUpdate] -> IO Cmd.State Source #
This is the toplevel function to record one Cmd's worth of history.
It's called by the responder after the Cmds are run and the updates are available.
check_save_history :: Cmd.State -> IO (Maybe.Maybe Text) Source #
Only do this if I would have written something. For that I need the diffs.