License | GPL-3 |
---|---|
Maintainer | Joris Guyonvarch <joris@guyonvarch.me> |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
A configuration management library.
Configuration file format
A configuration file consists of a series of:
- bindings,
- imports,
- and comments.
Binding a name to a value
A binding associates a name to a value:
number = 1 my-string = "Hello" a_double = 4.0 thatIsABoolean = True a_double = 5.0
If two or more bindings have the same name, only the last one is kept.
Import other files
An import is either required or optional:
import "database.conf" importMaybe "local.conf"
Comments
A comment begins with '#' and continues to the end of the line:
# Comment x = 8 # Another comment