HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Modulevortex-keymap-0.1.0Haskell2010

Vortex.Keymap.Tree

The keymap as a tree: prefix keys open sub-trees, leaves carry a program of the host's choosing. One structure drives dispatch (one key per step), the Helix-style infobox that lists what a prefix offers, and a help table of every binding.

  • 2 types
  • 5 values
valueinfoboxRows :: KeyNode p -> [(Text, Text)]
#

Rows for the infobox: key name and what it does. Sub-trees are marked with an ellipsis, as Helix does.

datadata Step p
#

What one key does inside the node that is open.

Constructors

Instances3Functor, Eq, Show
  • Functor StepDefined in vortex-keymap-0.1.0 · Vortex.Keymap.Tree
  • Eq p => Eq (Step p)Defined in vortex-keymap-0.1.0 · Vortex.Keymap.Tree
  • Show p => Show (Step p)Defined in vortex-keymap-0.1.0 · Vortex.Keymap.Tree
valuestep :: KeyNode p -> [Key] -> Key -> Step p
#

Dispatch one key: the node currently open, the path that opened it (empty at the root), and the key.