Data.ConfigFile.Parser

ConfigFile-1.1.1: Configuration file reading & writing

Portability | portable
Stability | provisional
Maintainer | John Goerzen <jgoerzen@complete.org>

Data.ConfigFile.Parser

Description

Parser support for Data.ConfigFile. This module is not intended to be used directly by your programs.

Copyright (c) 2004-2008 John Goerzen, jgoerzen@complete.org

Synopsis

- parse_string :: MonadError CPError m => String -> m ParseOutput
- parse_file :: MonadError CPError m => FilePath -> IO (m ParseOutput)
- parse_handle :: MonadError CPError m => Handle -> IO (m ParseOutput)
- interpmain :: (String -> Either CPError String) -> Parser String
- type ParseOutput = [(String, [(String, String)])]

# Documentation

parse_string :: MonadError CPError m => String -> m ParseOutput

parse_file :: MonadError CPError m => FilePath -> IO (m ParseOutput)

parse_handle :: MonadError CPError m => Handle -> IO (m ParseOutput)

interpmain :: (String -> Either CPError String) -> Parser String

type ParseOutput = [(String, [(String, String)])]

Internal output from parser