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

Distribution.PackageDescription.FieldGrammar

Description

GenericPackageDescription Field descriptions

Synopsis

Package description

newtype CompatDataDir #

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 #

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 # 
Instance details

Defined in Distribution.PackageDescription.FieldGrammar

Methods

buildInfo :: Lens' TestSuiteStanza BuildInfo #

buildable :: Lens' TestSuiteStanza Bool #

buildTools :: Lens' TestSuiteStanza [LegacyExeDependency] #

buildToolDepends :: Lens' TestSuiteStanza [ExeDependency] #

cppOptions :: Lens' TestSuiteStanza [String] #

asmOptions :: Lens' TestSuiteStanza [String] #

cmmOptions :: Lens' TestSuiteStanza [String] #

ccOptions :: Lens' TestSuiteStanza [String] #

cxxOptions :: Lens' TestSuiteStanza [String] #

jsppOptions :: Lens' TestSuiteStanza [String] #

ldOptions :: Lens' TestSuiteStanza [String] #

hsc2hsOptions :: Lens' TestSuiteStanza [String] #

pkgconfigDepends :: Lens' TestSuiteStanza [PkgconfigDependency] #

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

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

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

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

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

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

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

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

otherModules :: Lens' TestSuiteStanza [ModuleName] #

virtualModules :: Lens' TestSuiteStanza [ModuleName] #

autogenModules :: Lens' TestSuiteStanza [ModuleName] #

defaultLanguage :: Lens' TestSuiteStanza (Maybe Language) #

otherLanguages :: Lens' TestSuiteStanza [Language] #

defaultExtensions :: Lens' TestSuiteStanza [Extension] #

otherExtensions :: Lens' TestSuiteStanza [Extension] #

oldExtensions :: Lens' TestSuiteStanza [Extension] #

extraLibs :: Lens' TestSuiteStanza [String] #

extraLibsStatic :: Lens' TestSuiteStanza [String] #

extraGHCiLibs :: Lens' TestSuiteStanza [String] #

extraBundledLibs :: Lens' TestSuiteStanza [String] #

extraLibFlavours :: Lens' TestSuiteStanza [String] #

extraDynLibFlavours :: Lens' TestSuiteStanza [String] #

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

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

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

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

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

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

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

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

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

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

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

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

targetBuildDepends :: Lens' TestSuiteStanza [Dependency] #

mixins :: Lens' TestSuiteStanza [Mixin] #

Lenses

Benchmark

data BenchmarkStanza #

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 # 
Instance details

Defined in Distribution.PackageDescription.FieldGrammar

Methods

buildInfo :: Lens' BenchmarkStanza BuildInfo #

buildable :: Lens' BenchmarkStanza Bool #

buildTools :: Lens' BenchmarkStanza [LegacyExeDependency] #

buildToolDepends :: Lens' BenchmarkStanza [ExeDependency] #

cppOptions :: Lens' BenchmarkStanza [String] #

asmOptions :: Lens' BenchmarkStanza [String] #

cmmOptions :: Lens' BenchmarkStanza [String] #

ccOptions :: Lens' BenchmarkStanza [String] #

cxxOptions :: Lens' BenchmarkStanza [String] #

jsppOptions :: Lens' BenchmarkStanza [String] #

ldOptions :: Lens' BenchmarkStanza [String] #

hsc2hsOptions :: Lens' BenchmarkStanza [String] #

pkgconfigDepends :: Lens' BenchmarkStanza [PkgconfigDependency] #

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

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

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

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

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

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

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

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

otherModules :: Lens' BenchmarkStanza [ModuleName] #

virtualModules :: Lens' BenchmarkStanza [ModuleName] #

autogenModules :: Lens' BenchmarkStanza [ModuleName] #

defaultLanguage :: Lens' BenchmarkStanza (Maybe Language) #

otherLanguages :: Lens' BenchmarkStanza [Language] #

defaultExtensions :: Lens' BenchmarkStanza [Extension] #

otherExtensions :: Lens' BenchmarkStanza [Extension] #

oldExtensions :: Lens' BenchmarkStanza [Extension] #

extraLibs :: Lens' BenchmarkStanza [String] #

extraLibsStatic :: Lens' BenchmarkStanza [String] #

extraGHCiLibs :: Lens' BenchmarkStanza [String] #

extraBundledLibs :: Lens' BenchmarkStanza [String] #

extraLibFlavours :: Lens' BenchmarkStanza [String] #

extraDynLibFlavours :: Lens' BenchmarkStanza [String] #

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

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

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

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

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

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

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

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

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

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

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

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

targetBuildDepends :: Lens' BenchmarkStanza [Dependency] #

mixins :: Lens' BenchmarkStanza [Mixin] #

Field grammars

Lenses

Flag

Source repository

Setup build info

Component build info