b9-0.5.61: A tool and library for building virtual machine images.

Safe HaskellNone



Extensions to ConfigFile and utility functions for dealing with configuration in general and reading/writing files.



emptyCP :: ConfigParser #

The default empty ConfigFile object.

The content contains only an empty mandatory DEFAULT section.

optionxform is set to map toLower.

usedefault is set to True.

accessfunc is set to simpleAccess.

type CPGet a = Get_C a Source #

An alias for Get_C

type CPError = (CPErrorData, String) #

Indicates an error occurred. The String is an explanation of the location of the error.

readCPDocument :: MonadIO m => SystemPath -> m CPDocument Source #

Read a file and try to parse the contents as a CPDocument, if something goes wrong throw a CPReadException