kmonad-0.4.1: Advanced keyboard remapping utility

Copyright(c) David Janssen 2019
LicenseMIT
Maintainerjanssen.dhj@gmail.com
Stabilityexperimental
Portabilitynon-portable (MPTC with FD, FFI to Linux-only c-code)
Safe HaskellNone
LanguageHaskell2010

KMonad.Args.Parser

Description

We perform configuration parsing in 2 steps: - 1. We turn the text-file into a token representation - 2. We check the tokens and turn them into an AppCfg

This module covers step 1.

Synopsis

Documentation

parseTokens :: Text -> Either PErrors [KExpr] Source #

Try to parse a list of KExpr from Text

loadTokens :: FilePath -> RIO e [KExpr] Source #

Load a set of tokens from file, throw an error on parse-fail