Safe Haskell | None |
---|---|
Language | Haskell2010 |
Main module that reexports the other ones
Documentation
Represents the accepted modifiers C
,M
,S
parseEmacsKeys :: String -> Either String ([Modifier], [Keysym]) Source
Parse a string into a list of modifiers and keysyms If Shift is part of the modifiers, the keysyms are converted to upper case
>>>
parseEmacsKeys "M-a"
Right ([Meta],[Keysym 97])
>>>
parseEmacsKeys "Return"
Right ([],[Keysym 65293])
>>>
parseEmacsKeys "S-a"
Right ([Shift],[Keysym 65])
mkEmacsKeys :: String -> Q Exp Source
TH helper, to turn parse errors into compile time errors