libconfig-0.1.0.0: Haskell bindings to libconfig

Copyright(c) Matthew Peddie 2014
LicenseBSD3
Maintainermpeddie@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Libconfig.Types

Contents

Description

Core types for configuration file data.

Synopsis

Primitive types

data Setting

A libconfig Setting is a name-value pair.

Constructors

Setting 

Fields

name :: !Text
 
value :: !Value
 

data Value

A libconfig Value is either a Scalar value or some type of collection.

Constructors

Scalar !Scalar 
Array !Array 
List !List 
Group !Group 

data Scalar

A libconfig Scalar value is a boolean value, a string or one of an assortment of numeric types.

Collection types

type Array = [Scalar]

libconfig Arrays can contain any number Scalar values.

type List = [Value]

libconfig Lists can contain any number of Values.

type Group = [Setting]

libconfig Groups are like Lists, except that each element in the Group is a Setting with its own unique name, not just an unlabeled Value.