Safe Haskell | Safe-Inferred |
---|
This module does the strict minimum needed parsing INI-style config files
Documentation
parseConfig :: String -> ConfSource
Parses a string into a Map String String
configLine :: String -> BoolSource
keep only lines that will lead to some configuration element stripping out comments, empty lines, etc.
getKeyValue :: String -> (Key, Value)Source
Turns a line into a key, value pair
stripWhite :: String -> StringSource
drop leading and ending white space