| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Config
Description
This module parses files using the syntax demonstrated below. The full grammar is available in the Happy source file.
-- Line comments until newline
layout:
based:
configuration:
{} -- empty section
sections:
"glguy"
{- Block comments
{- nested comments -}
"O'caml style {- strings in comments"
so you can comment out otherwise valid
portions of your config
-}
atoms : yes
decimal : -1234
hexadecimal: 0x1234
octal : 0o1234
binary : 0b1010
lists:
* sections: in-lists
next-section: still-in-list
* [ "inline", "lists" ]
* * "nestable"
* "layout"
* "lists"
* 3
unicode : "standard Haskell format strings (1 ≤ 2)\x2228(2 ≤ 3)"
Documentation
A single section of a Value
Constructors
| Section | |
Fields
| |
Sum type of the values supported by this language.
Parse a configuration file and return the result on the right, or the position of an error on the left. Note: Text file lines are terminated by new-lines.