Cabal-syntax-3.14.1.0: A library for working with .cabal files
Safe HaskellNone
LanguageHaskell2010

Distribution.PackageDescription.FieldGrammar

Description

GenericPackageDescription Field descriptions

Synopsis

Package description

newtype CompatDataDir Source #

Newtype for data directory (absolute or relative).

Accepts empty file path, but issues a warning; there are simply too many (~1200) package definition files

data-dir: ""

across Hackage to outrule them completely. I suspect some of them are generated (e.g. formatted) by machine.

Library

Foreign library

Executable

Test suite

data TestSuiteStanza Source #

An intermediate type just used for parsing the test-suite stanza. After validation it is converted into the proper TestSuite type.

Instances

Instances details
HasBuildInfo TestSuiteStanza Source # 
Instance details

Defined in Distribution.PackageDescription.FieldGrammar

Methods

buildInfo :: Lens' TestSuiteStanza BuildInfo Source #

buildable :: Lens' TestSuiteStanza Bool Source #

buildTools :: Lens' TestSuiteStanza [LegacyExeDependency] Source #

buildToolDepends :: Lens' TestSuiteStanza [ExeDependency] Source #

cppOptions :: Lens' TestSuiteStanza [String] Source #

asmOptions :: Lens' TestSuiteStanza [String] Source #

cmmOptions :: Lens' TestSuiteStanza [String] Source #

ccOptions :: Lens' TestSuiteStanza [String] Source #

cxxOptions :: Lens' TestSuiteStanza [String] Source #

ldOptions :: Lens' TestSuiteStanza [String] Source #

hsc2hsOptions :: Lens' TestSuiteStanza [String] Source #

pkgconfigDepends :: Lens' TestSuiteStanza [PkgconfigDependency] Source #

frameworks :: Lens' TestSuiteStanza [RelativePath Framework 'File] Source #

extraFrameworkDirs :: Lens' TestSuiteStanza [SymbolicPath Pkg ('Dir Framework)] Source #

asmSources :: Lens' TestSuiteStanza [SymbolicPath Pkg 'File] Source #

cmmSources :: Lens' TestSuiteStanza [SymbolicPath Pkg 'File] Source #

cSources :: Lens' TestSuiteStanza [SymbolicPath Pkg 'File] Source #

cxxSources :: Lens' TestSuiteStanza [SymbolicPath Pkg 'File] Source #

jsSources :: Lens' TestSuiteStanza [SymbolicPath Pkg 'File] Source #

hsSourceDirs :: Lens' TestSuiteStanza [SymbolicPath Pkg ('Dir Source)] Source #

otherModules :: Lens' TestSuiteStanza [ModuleName] Source #

virtualModules :: Lens' TestSuiteStanza [ModuleName] Source #

autogenModules :: Lens' TestSuiteStanza [ModuleName] Source #

defaultLanguage :: Lens' TestSuiteStanza (Maybe Language) Source #

otherLanguages :: Lens' TestSuiteStanza [Language] Source #

defaultExtensions :: Lens' TestSuiteStanza [Extension] Source #

otherExtensions :: Lens' TestSuiteStanza [Extension] Source #

oldExtensions :: Lens' TestSuiteStanza [Extension] Source #

extraLibs :: Lens' TestSuiteStanza [String] Source #

extraLibsStatic :: Lens' TestSuiteStanza [String] Source #

extraGHCiLibs :: Lens' TestSuiteStanza [String] Source #

extraBundledLibs :: Lens' TestSuiteStanza [String] Source #

extraLibFlavours :: Lens' TestSuiteStanza [String] Source #

extraDynLibFlavours :: Lens' TestSuiteStanza [String] Source #

extraLibDirs :: Lens' TestSuiteStanza [SymbolicPath Pkg ('Dir Lib)] Source #

extraLibDirsStatic :: Lens' TestSuiteStanza [SymbolicPath Pkg ('Dir Lib)] Source #

includeDirs :: Lens' TestSuiteStanza [SymbolicPath Pkg ('Dir Include)] Source #

includes :: Lens' TestSuiteStanza [SymbolicPath Include 'File] Source #

autogenIncludes :: Lens' TestSuiteStanza [RelativePath Include 'File] Source #

installIncludes :: Lens' TestSuiteStanza [RelativePath Include 'File] Source #

options :: Lens' TestSuiteStanza (PerCompilerFlavor [String]) Source #

profOptions :: Lens' TestSuiteStanza (PerCompilerFlavor [String]) Source #

sharedOptions :: Lens' TestSuiteStanza (PerCompilerFlavor [String]) Source #

profSharedOptions :: Lens' TestSuiteStanza (PerCompilerFlavor [String]) Source #

staticOptions :: Lens' TestSuiteStanza (PerCompilerFlavor [String]) Source #

customFieldsBI :: Lens' TestSuiteStanza [(String, String)] Source #

targetBuildDepends :: Lens' TestSuiteStanza [Dependency] Source #

mixins :: Lens' TestSuiteStanza [Mixin] Source #

Lenses

Benchmark

data BenchmarkStanza Source #

An intermediate type just used for parsing the benchmark stanza. After validation it is converted into the proper Benchmark type.

Instances

Instances details
HasBuildInfo BenchmarkStanza Source # 
Instance details

Defined in Distribution.PackageDescription.FieldGrammar

Methods

buildInfo :: Lens' BenchmarkStanza BuildInfo Source #

buildable :: Lens' BenchmarkStanza Bool Source #

buildTools :: Lens' BenchmarkStanza [LegacyExeDependency] Source #

buildToolDepends :: Lens' BenchmarkStanza [ExeDependency] Source #

cppOptions :: Lens' BenchmarkStanza [String] Source #

asmOptions :: Lens' BenchmarkStanza [String] Source #

cmmOptions :: Lens' BenchmarkStanza [String] Source #

ccOptions :: Lens' BenchmarkStanza [String] Source #

cxxOptions :: Lens' BenchmarkStanza [String] Source #

ldOptions :: Lens' BenchmarkStanza [String] Source #

hsc2hsOptions :: Lens' BenchmarkStanza [String] Source #

pkgconfigDepends :: Lens' BenchmarkStanza [PkgconfigDependency] Source #

frameworks :: Lens' BenchmarkStanza [RelativePath Framework 'File] Source #

extraFrameworkDirs :: Lens' BenchmarkStanza [SymbolicPath Pkg ('Dir Framework)] Source #

asmSources :: Lens' BenchmarkStanza [SymbolicPath Pkg 'File] Source #

cmmSources :: Lens' BenchmarkStanza [SymbolicPath Pkg 'File] Source #

cSources :: Lens' BenchmarkStanza [SymbolicPath Pkg 'File] Source #

cxxSources :: Lens' BenchmarkStanza [SymbolicPath Pkg 'File] Source #

jsSources :: Lens' BenchmarkStanza [SymbolicPath Pkg 'File] Source #

hsSourceDirs :: Lens' BenchmarkStanza [SymbolicPath Pkg ('Dir Source)] Source #

otherModules :: Lens' BenchmarkStanza [ModuleName] Source #

virtualModules :: Lens' BenchmarkStanza [ModuleName] Source #

autogenModules :: Lens' BenchmarkStanza [ModuleName] Source #

defaultLanguage :: Lens' BenchmarkStanza (Maybe Language) Source #

otherLanguages :: Lens' BenchmarkStanza [Language] Source #

defaultExtensions :: Lens' BenchmarkStanza [Extension] Source #

otherExtensions :: Lens' BenchmarkStanza [Extension] Source #

oldExtensions :: Lens' BenchmarkStanza [Extension] Source #

extraLibs :: Lens' BenchmarkStanza [String] Source #

extraLibsStatic :: Lens' BenchmarkStanza [String] Source #

extraGHCiLibs :: Lens' BenchmarkStanza [String] Source #

extraBundledLibs :: Lens' BenchmarkStanza [String] Source #

extraLibFlavours :: Lens' BenchmarkStanza [String] Source #

extraDynLibFlavours :: Lens' BenchmarkStanza [String] Source #

extraLibDirs :: Lens' BenchmarkStanza [SymbolicPath Pkg ('Dir Lib)] Source #

extraLibDirsStatic :: Lens' BenchmarkStanza [SymbolicPath Pkg ('Dir Lib)] Source #

includeDirs :: Lens' BenchmarkStanza [SymbolicPath Pkg ('Dir Include)] Source #

includes :: Lens' BenchmarkStanza [SymbolicPath Include 'File] Source #

autogenIncludes :: Lens' BenchmarkStanza [RelativePath Include 'File] Source #

installIncludes :: Lens' BenchmarkStanza [RelativePath Include 'File] Source #

options :: Lens' BenchmarkStanza (PerCompilerFlavor [String]) Source #

profOptions :: Lens' BenchmarkStanza (PerCompilerFlavor [String]) Source #

sharedOptions :: Lens' BenchmarkStanza (PerCompilerFlavor [String]) Source #

profSharedOptions :: Lens' BenchmarkStanza (PerCompilerFlavor [String]) Source #

staticOptions :: Lens' BenchmarkStanza (PerCompilerFlavor [String]) Source #

customFieldsBI :: Lens' BenchmarkStanza [(String, String)] Source #

targetBuildDepends :: Lens' BenchmarkStanza [Dependency] Source #

mixins :: Lens' BenchmarkStanza [Mixin] Source #

Field grammars

Lenses

Flag

Source repository

Setup build info

Component build info