-
-
Notifications
You must be signed in to change notification settings - Fork 52
Finer hook types... #215
Copy link
Copy link
Open
Labels
beginner-friendlyGood for newcomersGood for newcomersenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
beginner-friendlyGood for newcomersGood for newcomersenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra 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 Terminaltype HookWindowResize = ...However all these require a smart constructor to convert into conventional hook.