| |||||||||||||
| |||||||||||||
| |||||||||||||
Description | |||||||||||||
This defined parsers and partial pretty printers for the .cabal format. Some of the complexity in this module is due to the fact that we have to be backwards compatible with old .cabal files, so there's code to translate into the newer structure. | |||||||||||||
Synopsis | |||||||||||||
Package descriptions | |||||||||||||
readPackageDescription :: Verbosity -> FilePath -> IO GenericPackageDescription | |||||||||||||
Parse the given package file. | |||||||||||||
writePackageDescription :: FilePath -> PackageDescription -> IO () | |||||||||||||
parsePackageDescription :: String -> ParseResult GenericPackageDescription | |||||||||||||
Parses the given file into a GenericPackageDescription. In Cabal 1.2 the syntax for package descriptions was changed to a format with sections and possibly indented property descriptions. | |||||||||||||
showPackageDescription :: PackageDescription -> String | |||||||||||||
Parsing | |||||||||||||
data ParseResult a | |||||||||||||
| |||||||||||||
data FieldDescr a | |||||||||||||
| |||||||||||||
type LineNo = Int | |||||||||||||
Supplementary build information | |||||||||||||
readHookedBuildInfo :: Verbosity -> FilePath -> IO HookedBuildInfo | |||||||||||||
parseHookedBuildInfo :: String -> ParseResult HookedBuildInfo | |||||||||||||
writeHookedBuildInfo :: FilePath -> HookedBuildInfo -> IO () | |||||||||||||
showHookedBuildInfo :: HookedBuildInfo -> String | |||||||||||||
pkgDescrFieldDescrs :: [FieldDescr PackageDescription] | |||||||||||||
libFieldDescrs :: [FieldDescr Library] | |||||||||||||
executableFieldDescrs :: [FieldDescr Executable] | |||||||||||||
binfoFieldDescrs :: [FieldDescr BuildInfo] | |||||||||||||
sourceRepoFieldDescrs :: [FieldDescr SourceRepo] | |||||||||||||
testSuiteFieldDescrs :: [FieldDescr TestSuiteStanza] | |||||||||||||
flagFieldDescrs :: [FieldDescr Flag] | |||||||||||||
Produced by Haddock version 2.6.1 |