Finer hook types... #215
Labels
beginner-friendly
Good for newcomers
enhancement
New feature or request
help wanted
Extra attention is needed
It would be nice to see examples of hook types that are finer, and more declarative.
Instead of
... -> IO ()
, I would love to see:type HookNewTerminal = Terminal -> IO Terminal
,type HookNewWindow = ApplicationWindow -> Terminal -> IO Terminal
,type HookNameChange = Terminal -> String -> IO Terminal
type HookWindowResize = ...
However all these require a smart constructor to convert into conventional hook.
The text was updated successfully, but these errors were encountered: