Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- parseConfigFile :: FilePath -> IO Config
- commentParser :: Parser ConfigItem
- itemParser :: Parser ConfigItem
- fallThroughItemParser :: Parser ConfigItem
- configItemsFolder :: Config -> ConfigItem -> Config
- data ConfigItem
- colorConfigToColor :: String -> Color
- intensityConfigToIntensity :: String -> ColorIntensity
- stringConfigToStringList :: String -> [String]
- redirectionParser :: Parser Redirection
- strConfigToRedirection :: String -> Redirection
- boolConfigToBool :: String -> Bool
- intConfigToInt :: String -> Int
Documentation
fallThroughItemParser :: Parser ConfigItem Source #
Must not be able to process an empty string
This is mandated by the use of many
in configFileParser
Therefore the definition `manyTill anyChar eof` is invalid, thus using newline
configItemsFolder :: Config -> ConfigItem -> Config Source #
data ConfigItem Source #
Instances
Eq ConfigItem Source # | |
Defined in GitHUD.Config.Parse (==) :: ConfigItem -> ConfigItem -> Bool # (/=) :: ConfigItem -> ConfigItem -> Bool # | |
Show ConfigItem Source # | |
Defined in GitHUD.Config.Parse showsPrec :: Int -> ConfigItem -> ShowS # show :: ConfigItem -> String # showList :: [ConfigItem] -> ShowS # |
colorConfigToColor :: String -> Color Source #
stringConfigToStringList :: String -> [String] Source #
boolConfigToBool :: String -> Bool Source #
intConfigToInt :: String -> Int Source #