Visitar URL original
Data.Bini
bini-0.1.5: A collection of various methods for reading and writing bini files.
Safe HaskellNone
LanguageHaskell2010

Data.Bini

Contents

Description

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
...
Synopsis

Reading

Types

data Bini Source #

The abstract representation of the Bini

Constructors

Bini 

Fields

Instances

Instances details
Show Bini Source # 
Instance details

Defined in Data.Bini

Methods

showsPrec :: Int -> Bini -> ShowS #

show :: Bini -> String #

showList :: [Bini] -> ShowS #

data Section Source #

The abstract representation of a section

Constructors

Section 

Fields

Instances

Instances details
Show Section Source # 
Instance details

Defined in Data.Bini

data Entry Source #

The abstract representation of an entry

Constructors

Entry 

Fields

Instances

Instances details
Show Entry Source # 
Instance details

Defined in Data.Bini

Methods

showsPrec :: Int -> Entry -> ShowS #

show :: Entry -> String #

showList :: [Entry] -> ShowS #

data BiniVal Source #

The abstract representation of a bini-value

Instances

Instances details
Show BiniVal Source # 
Instance details

Defined in Data.Bini