Compare commits

...
Sign in to create a new pull request.
Author SHA1 Message Date
437cad94a6 Update src/Keyboard.hs 2025-02-24 00:16:34 +00:00
fad0336515 WIP 2025-01-30 18:04:09 +00:00

12
src/Keyboard.hs Normal file
View file

@ -0,0 +1,12 @@
import Data.Text.Lazy as TL
parseKB :: [String] -> [String]
parseKB keylist = do {-
the thing is, we need to process this as a list, maybe with Map
-}
our_keylist = TL.pack keylist
our_operator = TL.pack "-"
splited = TL.unpack $ TL.splitOn our_operator our_keylist
-- getting the keys is partially implemented here:
-- https://git.ajattix.org/hashirama/haskell-examples/src/branch/main/keyPress.hs