Copyright | Copyright (C) 2004-2008 John Goerzen |
---|---|
License | Either LGPL or BSD3, as specified in the COPYRIGHT file. |
Maintainer | John Goerzen <jgoerzen@complete.org> |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
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
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- typeCPOptions = MapOptionSpecString
- typeCPData = MapSectionSpecCPOptions
- dataCPErrorData
- typeCPError = (CPErrorData, String)
- dataConfigParser = ConfigParser {
- content :: CPData
- optionxform :: OptionSpec -> OptionSpec
- defaulthandler :: ConfigParser -> SectionSpec -> OptionSpec -> EitherCPErrorString
- usedefault :: Bool
- accessfunc :: ConfigParser -> SectionSpec -> OptionSpec -> EitherCPErrorString
- typeSectionSpec = String
- typeOptionSpec = String
- typeParseOutput = [(String, [(String, String)])]
Documentation
typeCPOptions = MapOptionSpecStringSource
Storage of options.
typeCPData = MapSectionSpecCPOptionsSource
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
.
Possible ConfigParser errors.
Constructors
ParseErrorString | Parse error |
SectionAlreadyExistsSectionSpec | Attempt to create an already-existing ection |
NoSectionSectionSpec | The section does not exist |
NoOptionOptionSpec | The option does not exist |
OtherProblemString | Miscellaneous error |
InterpolationErrorString | Raised by |
typeCPError = (CPErrorData, String) Source
Indicates an error occurred. The String is an explanation of the location of the error.
This is the main record that is used by ConfigFile
.
Constructors
ConfigParser | |
Fields
|
typeSectionSpec = StringSource
Names of sections
typeOptionSpec = StringSource
Names of options
typeParseOutput = [(String, [(String, String)])] Source
Internal output from parser