The Haskell CabalSource codeContentsIndex
Distribution.Package
Portability
Stability alpha
Maintainer Isaac Jones <ijones@syntaxpolice.org>
Description
Explanation: Package description and parsing
Synopsis
data PackageIdentifier = PackageIdentifier {
pkgName :: String
pkgVersion :: Version
}
showPackageId :: PackageIdentifier -> String
data PackageDescription = PackageDescription {
package :: PackageIdentifier
license :: License
copyright :: String
maintainer :: String
stability :: String
library :: (Maybe BuildInfo)
executables :: [Executable]
}
data BuildInfo = BuildInfo {
buildDepends :: [Dependency]
modules :: [String]
exposedModules :: [String]
cSources :: [FilePath]
hsSourceDir :: FilePath
extensions :: [Extension]
extraLibs :: [String]
includeDirs :: [FilePath]
includes :: [FilePath]
options :: [(CompilerFlavor, [String])]
}
data Executable = Executable {
exeName :: String
modulePath :: FilePath
buildInfo :: BuildInfo
}
emptyPackageDescription :: PackageDescription
parsePackageDesc :: FilePath -> IO PackageDescription
hasLibs :: PackageDescription -> Bool
Documentation
data PackageIdentifier
Constructors
PackageIdentifier
pkgName :: String
pkgVersion :: Version
Instances
Read PackageIdentifier
Show PackageIdentifier
Eq PackageIdentifier
showPackageId :: PackageIdentifier -> String
data PackageDescription
This data type is the internal representation of the file pkg.descr. It contains two kinds of information about the package: information which is needed for all packages, such as the package name and version, and information which is needed for the simple build system only, such as the compiler options and library name.
Constructors
PackageDescription
package :: PackageIdentifier
license :: License
copyright :: String
maintainer :: String
stability :: String
library :: (Maybe BuildInfo)
executables :: [Executable]
Instances
Show PackageDescription
Read PackageDescription
Eq PackageDescription
data BuildInfo
Constructors
BuildInfo
buildDepends :: [Dependency]
modules :: [String]
exposedModules :: [String]
cSources :: [FilePath]
hsSourceDir :: FilePath
extensions :: [Extension]
extraLibs :: [String]
includeDirs :: [FilePath]
includes :: [FilePath]
options :: [(CompilerFlavor, [String])]
Instances
Show BuildInfo
Read BuildInfo
Eq BuildInfo
data Executable
Constructors
Executable
exeName :: String
modulePath :: FilePath
buildInfo :: BuildInfo
Instances
Show Executable
Read Executable
Eq Executable
emptyPackageDescription :: PackageDescription
parsePackageDesc :: FilePath -> IO PackageDescription
Parse the given package file.
hasLibs :: PackageDescription -> Bool
does this package have any libraries?
Produced by Haddock version 0.6