| 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"
booleans : yes
complicated: no
decimal : -1234
hexadecimal: 0x1234
octal : 0o1234
binary : 0b1010
lists:
* 1
* [ "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.
Arguments
| :: ByteString | UTF-8 encoded source |
| -> Either (Int, Int) Value | Either (Line,Column) Result |
Parse a configuration value and return the result on the right, or the position of an error on the left.