A library for simple INI-based configuration files. https://github.com/aisamanra/config-ini
|Latest on Hackage:||0.1.2.0|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
config-ini library is a small monadic language
for writing simple configuration languages with convenient,
human-readable error messages.
parseConfig :: IniParser (Text, Int, Bool) parseConfig = section "NETWORK" $ do user <- field "user" port <- fieldOf "port" number enc <- fieldFlagDef "encryption" True return (user, port, enc)