config-ini-0.1.2.1: A library for simple INI-based configuration files.

Safe HaskellNone
LanguageHaskell2010

Data.Ini.Config.Raw

Synopsis

Documentation

newtype Ini Source #

An Ini value is a mapping from section names to IniSection values.

Constructors

Ini 

Instances

Eq Ini Source # 

Methods

(==) :: Ini -> Ini -> Bool #

(/=) :: Ini -> Ini -> Bool #

Show Ini Source # 

Methods

showsPrec :: Int -> Ini -> ShowS #

show :: Ini -> String #

showList :: [Ini] -> ShowS #

data IniSection Source #

An IniSection consists of a name, a mapping of key-value pairs, and metadata about where the section starts and ends in the file.

data IniValue Source #

An IniValue represents a key-value mapping, and also stores the line number where it appears.

Constructors

IniValue 

Fields

parseIni :: Text -> Either String Ini Source #

Parse a Text value into an Ini value.