Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data PackageDescription
- componentBuildInfo :: ComponentName -> Traversal' PackageDescription BuildInfo
- allLibraries :: Traversal' PackageDescription Library
- package :: Lens' PackageDescription PackageIdentifier
- copyright :: Lens' PackageDescription ShortText
- maintainer :: Lens' PackageDescription ShortText
- author :: Lens' PackageDescription ShortText
- stability :: Lens' PackageDescription ShortText
- homepage :: Lens' PackageDescription ShortText
- pkgUrl :: Lens' PackageDescription ShortText
- synopsis :: Lens' PackageDescription ShortText
- description :: Lens' PackageDescription ShortText
- category :: Lens' PackageDescription ShortText
- dataDir :: Lens' PackageDescription FilePath
- specVersion :: Lens' PackageDescription CabalSpecVersion
- licenseRaw :: Lens' PackageDescription (Either License License)
- licenseFiles :: Lens' PackageDescription [SymbolicPath PackageDir LicenseFile]
- testedWith :: Lens' PackageDescription [(CompilerFlavor, VersionRange)]
- bugReports :: Lens' PackageDescription ShortText
- sourceRepos :: Lens' PackageDescription [SourceRepo]
- customFieldsPD :: Lens' PackageDescription [(String, String)]
- buildTypeRaw :: Lens' PackageDescription (Maybe BuildType)
- setupBuildInfo :: Lens' PackageDescription (Maybe SetupBuildInfo)
- library :: Lens' PackageDescription (Maybe Library)
- subLibraries :: Lens' PackageDescription [Library]
- executables :: Lens' PackageDescription [Executable]
- foreignLibs :: Lens' PackageDescription [ForeignLib]
- testSuites :: Lens' PackageDescription [TestSuite]
- benchmarks :: Lens' PackageDescription [Benchmark]
- dataFiles :: Lens' PackageDescription [FilePath]
- extraSrcFiles :: Lens' PackageDescription [String]
- extraTmpFiles :: Lens' PackageDescription [String]
- extraDocFiles :: Lens' PackageDescription [String]
- componentModules :: Monoid r => ComponentName -> Getting r PackageDescription [ModuleName]
Documentation
data PackageDescription Source #
This data type is the internal representation of the file pkg.cabal
.
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.
Instances
componentBuildInfo :: ComponentName -> Traversal' PackageDescription BuildInfo Source #
Since: Cabal-syntax-2.4
allLibraries :: Traversal' PackageDescription Library Source #
Since: Cabal-syntax-3.0.0.0
customFieldsPD :: Lens' PackageDescription [(String, String)] Source #
componentModules :: Monoid r => ComponentName -> Getting r PackageDescription [ModuleName] Source #
Since: Cabal-syntax-2.4