| Safe Haskell | Safe-Inferred | 
|---|
App.ExtractDoc
Contents
Synopsis
- main :: IO ()
 - keymap_doc :: Text
 - type Binds = [(Text, [Cmd.KeySpec])]
 - extract :: Cmd.Keymap Cmd.CmdId -> Binds
 - sort :: Binds -> Binds
 - group :: [(Cmd.KeySpec, Cmd.NamedCmd m)] -> [(Text, [Cmd.KeySpec])]
 - strip :: Binds -> Binds
 - strip_keyspecs :: [Cmd.KeySpec] -> [Cmd.KeySpec]
 - strip_mods :: Cmd.Bindable -> [Cmd.Modifier] -> [Cmd.Modifier]
 - txt_fmt :: Binds -> Text
 - show_binding :: Text -> [Cmd.KeySpec] -> Text
 - html_fmt :: Text -> Binds -> Text
 - columns :: Text -> Int -> [Text] -> Text
 - chunk :: Int -> [a] -> [[a]]
 - html_binding :: Text -> [Cmd.KeySpec] -> Text
 - html_keyspec :: Cmd.KeySpec -> Text
 
Documentation
extract keymap
keymap_doc :: Text Source #
type Binds = [(Text, [Cmd.KeySpec])] Source #
group :: [(Cmd.KeySpec, Cmd.NamedCmd m)] -> [(Text, [Cmd.KeySpec])] Source #
strip_keyspecs :: [Cmd.KeySpec] -> [Cmd.KeySpec] Source #
A repeatable key implies the non-repeating key. Also, a drag implies a click.
strip_mods :: Cmd.Bindable -> [Cmd.Modifier] -> [Cmd.Modifier] Source #
Strip out redundant modifiers. E.g. Click and Drag bindings by necessity imply that the mouse button is down, but I don't need to print that out.
txt fmt
show_binding :: Text -> [Cmd.KeySpec] -> Text Source #
html fmt
html_binding :: Text -> [Cmd.KeySpec] -> Text Source #
html_keyspec :: Cmd.KeySpec -> Text Source #