| Copyright | Copyright (C) 2004-2008 John Goerzen, 2015 David Farrell |
|---|---|
| License | BSD3 |
| Maintainer | David Farrell <shokku.ra@gmail.com> |
| Stability | unstable |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.ConfigFile.Types
Description
Internal types for Data.ConfigFile. This module is not intended to be used directly by your programs.
Copyright (C) 2004-2008 John Goerzen <jgoerzen@complete.org>, 2015 David Farrell <shokku.ra@gmail.com>.
- type ConfigOptions = Map OptionName String
- type ConfigSections = Map SectionName ConfigOptions
- data ConfigErrorType
- type ConfigError = (ConfigErrorType, String)
- data ConfigParser = ConfigParser {}
- type SectionName = String
- type OptionName = String
- type ParseOutput = [(String, [(String, String)])]
Documentation
type ConfigOptions = Map OptionName String Source
Storage of options.
type ConfigSections = Map SectionName ConfigOptions Source
The main data storage type (storage of sections).
PLEASE NOTE: This type is exported only for use by other modules under
Data.ConfigFile. You should NEVER access the FiniteMap in a ConfigParser
directly. This type may change in future releases of MissingH, which could
break your programs. Please retrict yourself to the interface in
ConfigFile.
data ConfigErrorType Source
Possible ConfigParser errors.
Constructors
| ParseError String | Parse error |
| SectionAlreadyExists SectionName | Attempt to create an already-existing section |
| NoSection SectionName | The section does not exist |
| NoOption OptionName | The option does not exist |
| OtherProblem String | Miscellaneous error |
| InterpolationError String | Raised by |
type ConfigError = (ConfigErrorType, String) Source
Indicates an error occurred. The String is an explanation of the location of the error.
data ConfigParser Source
This is the main record that is used by ConfigFile.
Constructors
| ConfigParser | |
Fields
| |
type SectionName = String Source
Names of sections
type OptionName = String Source
Names of options
type ParseOutput = [(String, [(String, String)])] Source
Internal output from parser