Data.ConfigFile.Parser

ConfigFile-1.1.4: Configuration file reading & writing

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.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

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.

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