HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulebrick-2.10Haskell2010

Brick.Keybindings.Pretty

This module provides functions for pretty-printing key bindings and for generating Markdown, plain text, and Brick displays of event handler key binding configurations.

  • 11 values
  • Packagebrick-2.10
  • Exports11
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePretty.hs

Generating help output

3 declarations
valuekeybindingHelpWidget
  1. :: Ord k
  2. => KeyConfig k

    The key binding configuration in use.

  3. -> [KeyEventHandler k m]

    The list of the event handlers to include in the help display.

  4. -> Widget n
#

Build a Widget displaying key binding information for a single related group of event handlers. This is provided for convenience so that basic help text for the application's event handlers can be produced and embedded in the UI.

The resulting widget lists the key events (and keys) bound to the specified handlers, along with the events' names and the list of available key bindings for each handler.

Pretty-printing primitives

4 declarations

Attributes for Widget rendering

4 declarations