Copyright | (c) 2021 Mirko Westermeier |
---|---|
License | MIT |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Ultra light weight ini file parser
Ini files and data
Consider a simple ini file config.ini
like this:
[something] foo = bar [something else] answer = 42 name = Boaty McBoatface
There are two sections (inbetween "["
and "]"
) defined, "something"
and "something else"
. These sections contain a dictionary of strings each,
the keys being some string followed by "="
, and anything else until end of
the line as values. The leading and trailing spaces in section headers, keys
and values are trimmed.