Skip to content

Finer hook types... #215

@mgajda

Description

@mgajda

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions