Safe Haskell | None |
---|
Compressed binary configuration files in the (B)INI format.
Parsing example:
r <- readBiniFromFile "loadouts.ini" case r of Left s -> print s Right bini -> writeFile "loadouts.ini.txt" (show bini)
Outputfile:
[Loadout] nickname = msn_playerloadout archetype = ge_fighter equip = ge_gf1_engine_01 equip = shield01_mark01_lf, HpShield01 equip = ge_fighter_power01 ...
Reading
readBiniFromFile :: String -> IO (Either String Bini)
Parse a Binifile
Types
data BiniVal
The abstract representation of a bini-value
BiniInt Int | |
BiniFloat Float | |
BiniString String |
Show BiniVal |