Modulecabal-install-3.18.1.0Haskell2010
Distribution.Client.Setup
- 20 types
- 68 values
- Packagecabal-install-3.18.1.0
- Exports90
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceGlobalFlags.hs
Flags that apply at the top level, not to any sub-command.
Constructors
GlobalFlagsglobalVersion :: Flag BoolglobalFullVersion :: Flag BoolglobalNumericVersion :: Flag BoolglobalConfigFile :: Flag FilePathglobalConstraintsFile :: Flag FilePathglobalRemoteRepos :: NubList RemoteRepoAvailable Hackage servers.
globalCacheDir :: Flag FilePathglobalLocalNoIndexRepos :: NubList LocalRepoglobalActiveRepos :: Flag ActiveReposglobalLogsDir :: Flag FilePathglobalIgnoreExpiry :: Flag BoolIgnore security expiry dates
globalHttpTransport :: Flag StringglobalStoreDir :: Flag FilePathglobalProgPathExtra :: NubList FilePathExtra program path used for packagedb lookups in a global context (i.e. for http transports)
Instances5Show, Generic, Semigroup, Monoid, Rep
Show GlobalFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.GlobalFlagsGeneric GlobalFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.GlobalFlagsSemigroup GlobalFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.GlobalFlagsMonoid GlobalFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.GlobalFlagstype Rep GlobalFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.GlobalFlags"GlobalFlags"
"Distribution.Client.GlobalFlags"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"GlobalFlags"
'PrefixI 'True) (((S1 ('MetaSel ('Just"globalVersion"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: (S1 ('MetaSel ('Just"globalFullVersion"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"globalNumericVersion"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"globalConfigFile"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just"globalConstraintsFile"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))) :*: (S1 ('MetaSel ('Just"globalRemoteRepos"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NubList RemoteRepo)) :*: S1 ('MetaSel ('Just"globalCacheDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))))) :*: ((S1 ('MetaSel ('Just"globalLocalNoIndexRepos"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NubList LocalRepo)) :*: (S1 ('MetaSel ('Just"globalActiveRepos"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag ActiveRepos)) :*: S1 ('MetaSel ('Just"globalLogsDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)))) :*: ((S1 ('MetaSel ('Just"globalIgnoreExpiry"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"globalHttpTransport"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String))) :*: (S1 ('MetaSel ('Just"globalStoreDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just"globalProgPathExtra"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NubList FilePath)))))))
Access to repositories
Constructors
RepoContextrepoContextRepos :: [Repo]All user-specified repositories
repoContextGetTransport :: IO HttpTransportGet the HTTP transport
The transport will be initialized on the first call to this function.
NOTE: It is important that we don't eagerly initialize the transport. Initializing the transport is not free, and especially in contexts where we don't know a priori whether or not we need the transport (for instance when using cabal in "nix mode") incurring the overhead of transport initialization on _every_ invocation (eg
cabal build) is undesirable.repoContextWithSecureRepo :: forall a. Repo -> (forall (down :: Type -> Type). Repository down -> IO a) -> IO aGet the (initialized) secure repo
(the Repo type itself is stateless and must remain so, because it must be serializable)
repoContextIgnoreExpiry :: BoolShould we ignore expiry times (when checking security)?
A datatype that stores common flags for different invocations
of a Setup executable, e.g. configure, build, install.
Constructors
CommonSetupFlagssetupVerbosity :: !Flag VerbosityFlagsVerbosity
setupWorkingDir :: !Flag (SymbolicPath CWD ('Dir Pkg))Working directory (optional)
setupDistPref :: !Flag (SymbolicPath Pkg ('Dir Dist))Build directory
setupCabalFilePath :: !Flag (SymbolicPath Pkg 'File)Which Cabal file to use (optional)
setupTargets :: [String]Which targets is this Setup invocation relative to?
TODO: this one should not be here, it's just that the silly UserHooks stop us from passing extra info in other ways
setupKeepTempFiles :: Flag BoolWhen this flag is set, temporary files will be kept after building.
Note: Keeping temporary files is important functionality for HLS, which runs
cabal replwith a fake GHC to get CLI arguments. It will need the temporary files (including multi unit repl response files) to stay, even after thecabal replcommand exits.
Instances9Eq, Read, Show, Generic, Semigroup, Monoid, …
Eq CommonSetupFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.CommonRead CommonSetupFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.CommonShow CommonSetupFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.CommonGeneric CommonSetupFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.CommonSemigroup CommonSetupFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.CommonMonoid CommonSetupFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.CommonBinary CommonSetupFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.CommonStructured CommonSetupFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.Commontype Rep CommonSetupFlags = D1 ('MetaDataDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.Common"CommonSetupFlags"
"Distribution.Simple.Setup.Common"
"Cabal-3.18.1.0-cd98"
'False) (C1 ('MetaCons"CommonSetupFlags"
'PrefixI 'True) ((S1 ('MetaSel ('Just"setupVerbosity"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Flag VerbosityFlags)) :*: (S1 ('MetaSel ('Just"setupWorkingDir"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Flag (SymbolicPath CWD ('Dir Pkg)))) :*: S1 ('MetaSel ('Just"setupDistPref"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Flag (SymbolicPath Pkg ('Dir Dist)))))) :*: (S1 ('MetaSel ('Just"setupCabalFilePath"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Flag (SymbolicPath Pkg 'File))) :*: (S1 ('MetaSel ('Just"setupTargets"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]) :*: S1 ('MetaSel ('Just"setupKeepTempFiles"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))))))
Flags to configure command.
IMPORTANT: every time a new flag is added, D.C.Setup.filterConfigureFlags
should be updated.
IMPORTANT: every time a new flag is added, it should be added to the Eq instance
Constructors
ConfigFlagsconfigCommonFlags :: !CommonSetupFlagsconfigPrograms_ :: Maybe (Last ProgramDb)All programs that
cabalmay runconfigProgramPaths :: [(String, FilePath)]user specified programs paths
configProgramArgs :: [(String, [String])]user specified programs args
configProgramPathExtra :: NubList FilePathExtend the $PATH
configHcFlavor :: Flag CompilerFlavorThe "flavor" of the compiler, e.g. GHC.
configHcPath :: Flag FilePathgiven compiler location
configHcPkg :: Flag FilePathgiven hc-pkg location
configVanillaLib :: Flag BoolEnable vanilla library
configProfLib :: Flag BoolEnable profiling in the library
configStaticLib :: Flag BoolBuild static library
configBytecodeLib :: Flag BoolBuild bytecode library
configDynExe :: Flag BoolEnable dynamic linking of the executables.
configFullyStaticExe :: Flag BoolEnable fully static linking of the executables.
configProfExe :: Flag BoolEnable profiling in the executables.
configProf :: Flag BoolEnable profiling in the library and executables.
configProfDetail :: Flag ProfDetailLevelProfiling detail level in the library and executables.
configProfLibDetail :: Flag ProfDetailLevelProfiling detail level in the library
configConfigureArgs :: [String]Extra arguments to
configureconfigOptimization :: Flag OptimisationLevelEnable optimization.
configProgPrefix :: Flag PathTemplateInstalled executable prefix.
configProgSuffix :: Flag PathTemplateInstalled executable suffix.
configInstallDirs :: InstallDirs (Flag PathTemplate)Installation paths
configScratchDir :: Flag FilePathconfigExtraLibDirs :: [SymbolicPath Pkg ('Dir Lib)]path to search for extra libraries
configExtraLibDirsStatic :: [SymbolicPath Pkg ('Dir Lib)]path to search for extra libraries when linking fully static executables
configExtraFrameworkDirs :: [SymbolicPath Pkg ('Dir Framework)]path to search for extra frameworks (OS X only)
configExtraIncludeDirs :: [SymbolicPath Pkg ('Dir Include)]path to search for header files
configIPID :: Flag Stringexplicit IPID to be used
configCID :: Flag ComponentIdexplicit CID to be used
configDeterministic :: Flag Boolbe as deterministic as possible (e.g., invariant over GHC, database, etc). Used by the test suite
configUserInstall :: Flag BoolThe --user/--global flag
configPackageDBs :: [Maybe PackageDB]Which package DBs to use
configGHCiLib :: Flag BoolEnable compiling library for GHCi
configSplitSections :: Flag BoolEnable -split-sections with GHC
configSplitObjs :: Flag BoolEnable -split-objs with GHC
configStripExes :: Flag BoolEnable executable stripping
configStripLibs :: Flag BoolEnable library stripping
configConstraints :: [PackageVersionConstraint]Additional constraints for dependencies.
configDependencies :: [GivenComponent]The packages depended on which already exist
configPromisedDependencies :: [PromisedComponent]The packages depended on which doesn't yet exist (i.e. promised). Promising dependencies enables us to configure components in parallel, and avoids expensive builds if they are not necessary. For example, in multi-repl mode, we don't want to build dependencies that are loaded into the interactive session, since we have to build them again.
configInstantiateWith :: [(ModuleName, Module)]The requested Backpack instantiation. If empty, either this package does not use Backpack, or we just want to typecheck the indefinite package.
configConfigurationsFlags :: FlagAssignmentconfigTests :: Flag BoolEnable test suite compilation
configBenchmarks :: Flag BoolEnable benchmark compilation
configCoverage :: Flag BoolEnable program coverage
configLibCoverage :: Flag BoolEnable program coverage (deprecated)
configExactConfiguration :: Flag BoolAll direct dependencies and flags are provided on the command line by the user via the '--dependency' and '--flags' options.
configFlagError :: Flag StringHalt and show an error message indicating an error in flag assignment
configRelocatable :: Flag BoolEnable relocatable package built
configDebugInfo :: Flag DebugInfoLevelEmit debug info.
configDumpBuildInfo :: Flag DumpBuildInfoShould we dump available build information on build? Dump build information to disk before attempting to build, tooling can parse these files and use them to compile the source files themselves.
configUseResponseFiles :: Flag BoolWhether to use response files at all. They're used for such tools as haddock, or ld.
configAllowDependingOnPrivateLibs :: Flag BoolAllow depending on private sublibraries. This is used by external tools (like cabal-install) so they can add multiple-public-libraries compatibility to older ghcs by checking visibility externally.
configCoverageFor :: Flag [UnitId]The list of libraries to be included in the hpc coverage report for testsuites run with
--enable-coverage. Notably, this list must exclude indefinite libraries and instantiations because HPC does not support backpack (Nov. 2023).configIgnoreBuildTools :: Flag BoolWhen this flag is set, all tools declared in `build-tool`s and `build-tool-depends` will be ignored. This allows a Cabal package with build-tool-dependencies to be built even if the tool is not found.
Instances10Eq, Read, Show, Generic, Semigroup, Monoid, …
Eq ConfigFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.ConfigRead ConfigFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.ConfigShow ConfigFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.ConfigGeneric ConfigFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.ConfigSemigroup ConfigFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.ConfigMonoid ConfigFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.ConfigBinary ConfigFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.ConfigStructured ConfigFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.ConfigHasVerbosity ConfigFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.CmdLegacytype Rep ConfigFlags = D1 ('MetaDataDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.Config"ConfigFlags"
"Distribution.Simple.Setup.Config"
"Cabal-3.18.1.0-cd98"
'False) (C1 ('MetaCons"ConfigFlags"
'PrefixI 'True) (((((S1 ('MetaSel ('Just"configCommonFlags"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CommonSetupFlags) :*: (S1 ('MetaSel ('Just"configPrograms_"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Last ProgramDb))) :*: S1 ('MetaSel ('Just"configProgramPaths"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, FilePath)]))) :*: ((S1 ('MetaSel ('Just"configProgramArgs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, [String])]) :*: S1 ('MetaSel ('Just"configProgramPathExtra"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NubList FilePath))) :*: (S1 ('MetaSel ('Just"configHcFlavor"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag CompilerFlavor)) :*: S1 ('MetaSel ('Just"configHcPath"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))))) :*: ((S1 ('MetaSel ('Just"configHcPkg"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: (S1 ('MetaSel ('Just"configVanillaLib"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configProfLib"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"configSharedLib"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configStaticLib"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"configBytecodeLib"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configDynExe"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))))) :*: (((S1 ('MetaSel ('Just"configFullyStaticExe"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: (S1 ('MetaSel ('Just"configProfExe"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configProf"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"configProfShared"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configProfDetail"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag ProfDetailLevel))) :*: (S1 ('MetaSel ('Just"configProfLibDetail"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag ProfDetailLevel)) :*: S1 ('MetaSel ('Just"configConfigureArgs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String])))) :*: (((S1 ('MetaSel ('Just"configOptimization"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag OptimisationLevel)) :*: S1 ('MetaSel ('Just"configProgPrefix"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PathTemplate))) :*: (S1 ('MetaSel ('Just"configProgSuffix"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PathTemplate)) :*: S1 ('MetaSel ('Just"configInstallDirs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (InstallDirs (Flag PathTemplate))))) :*: ((S1 ('MetaSel ('Just"configScratchDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just"configExtraLibDirs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [SymbolicPath Pkg ('Dir Lib)])) :*: (S1 ('MetaSel ('Just"configExtraLibDirsStatic"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [SymbolicPath Pkg ('Dir Lib)]) :*: S1 ('MetaSel ('Just"configExtraFrameworkDirs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [SymbolicPath Pkg ('Dir Framework)])))))) :*: ((((S1 ('MetaSel ('Just"configExtraIncludeDirs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [SymbolicPath Pkg ('Dir Include)]) :*: (S1 ('MetaSel ('Just"configIPID"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)) :*: S1 ('MetaSel ('Just"configCID"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag ComponentId)))) :*: ((S1 ('MetaSel ('Just"configDeterministic"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configUserInstall"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"configPackageDBs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Maybe PackageDB]) :*: S1 ('MetaSel ('Just"configGHCiLib"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))))) :*: ((S1 ('MetaSel ('Just"configSplitSections"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: (S1 ('MetaSel ('Just"configSplitObjs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configStripExes"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"configStripLibs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configConstraints"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PackageVersionConstraint])) :*: (S1 ('MetaSel ('Just"configDependencies"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [GivenComponent]) :*: S1 ('MetaSel ('Just"configPromisedDependencies"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PromisedComponent]))))) :*: (((S1 ('MetaSel ('Just"configInstantiateWith"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(ModuleName, Module)]) :*: (S1 ('MetaSel ('Just"configConfigurationsFlags"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FlagAssignment) :*: S1 ('MetaSel ('Just"configTests"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"configBenchmarks"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configCoverage"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"configLibCoverage"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configExactConfiguration"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))))) :*: (((S1 ('MetaSel ('Just"configFlagError"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)) :*: S1 ('MetaSel ('Just"configRelocatable"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"configDebugInfo"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag DebugInfoLevel)) :*: S1 ('MetaSel ('Just"configDumpBuildInfo"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag DumpBuildInfo)))) :*: ((S1 ('MetaSel ('Just"configUseResponseFiles"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configAllowDependingOnPrivateLibs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"configCoverageFor"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [UnitId])) :*: S1 ('MetaSel ('Just"configIgnoreBuildTools"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))))))))
pattern ConfigCommonFlags :: Flag VerbosityFlags -> Flag (SymbolicPath Pkg ('Dir Dist)) -> Flag (SymbolicPath CWD ('Dir Pkg)) -> Flag (SymbolicPath Pkg 'File) -> [String] -> ConfigFlagsGiven some ConfigFlags for the version of Cabal that cabal-install was built with, and a target older Version of Cabal that we want to pass these flags to, convert the flags into a form that will be accepted by the older Setup script. Generally speaking, this just means filtering out flags that the old Cabal library doesn't understand, but in some cases it may also mean "emulating" a feature using some more legacy flags.
Get the package database settings from ConfigFlags, accounting for
--package-db and --user flags.
Configure the compiler, but reduce verbosity during this step.
cabal configure takes some extra flags beyond runghc Setup configure
Constructors
ConfigExFlagsconfigCabalVersion :: Flag VersionconfigAppend :: Flag BoolconfigBackup :: Flag BoolconfigExConstraints :: [(UserConstraint, ConstraintSource)]configPreferences :: [PackageVersionConstraint]configSolver :: Flag PreSolverconfigAllowNewer :: Maybe AllowNewerconfigAllowOlder :: Maybe AllowOlderconfigWriteGhcEnvironmentFilesPolicy :: Flag WriteGhcEnvironmentFilesPolicy
Instances6Eq, Show, Generic, Semigroup, Monoid, Rep
Eq ConfigExFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupShow ConfigExFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupGeneric ConfigExFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupSemigroup ConfigExFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupMonoid ConfigExFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setuptype Rep ConfigExFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"ConfigExFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"ConfigExFlags"
'PrefixI 'True) (((S1 ('MetaSel ('Just"configCabalVersion"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Version)) :*: S1 ('MetaSel ('Just"configAppend"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"configBackup"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"configExConstraints"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(UserConstraint, ConstraintSource)]))) :*: ((S1 ('MetaSel ('Just"configPreferences"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PackageVersionConstraint]) :*: S1 ('MetaSel ('Just"configSolver"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PreSolver))) :*: (S1 ('MetaSel ('Just"configAllowNewer"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AllowNewer)) :*: (S1 ('MetaSel ('Just"configAllowOlder"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AllowOlder)) :*: S1 ('MetaSel ('Just"configWriteGhcEnvironmentFilesPolicy"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag WriteGhcEnvironmentFilesPolicy)))))))
Constructors
BuildFlagsbuildCommonFlags :: !CommonSetupFlagsbuildProgramPaths :: [(String, FilePath)]buildProgramArgs :: [(String, [String])]buildNumJobs :: Flag (Maybe Int)buildUseSemaphore :: Flag String
Instances9Read, Show, Generic, Semigroup, Monoid, Binary, …
Read BuildFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.BuildShow BuildFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.BuildGeneric BuildFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.BuildSemigroup BuildFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.BuildMonoid BuildFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.BuildBinary BuildFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.BuildStructured BuildFlagsDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.BuildHasVerbosity BuildFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.CmdLegacytype Rep BuildFlags = D1 ('MetaDataDefined in Cabal-3.18.1.0 · Distribution.Simple.Setup.Build"BuildFlags"
"Distribution.Simple.Setup.Build"
"Cabal-3.18.1.0-cd98"
'False) (C1 ('MetaCons"BuildFlags"
'PrefixI 'True) ((S1 ('MetaSel ('Just"buildCommonFlags"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CommonSetupFlags) :*: S1 ('MetaSel ('Just"buildProgramPaths"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, FilePath)])) :*: (S1 ('MetaSel ('Just"buildProgramArgs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, [String])]) :*: (S1 ('MetaSel ('Just"buildNumJobs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag (Maybe Int))) :*: S1 ('MetaSel ('Just"buildUseSemaphore"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String))))))
pattern BuildCommonFlags :: Flag VerbosityFlags -> Flag (SymbolicPath Pkg ('Dir Dist)) -> Flag (SymbolicPath CWD ('Dir Pkg)) -> Flag (SymbolicPath Pkg 'File) -> [String] -> BuildFlagsGiven some BuildFlags for the version of Cabal that
cabal-install was built with, and a target older Version of
Cabal that we want to pass these flags to, convert the
flags into a form that will be accepted by the older
Setup script. Generally speaking, this just means filtering
out flags that the old Cabal library doesn't understand, but
in some cases it may also mean "emulating" a feature using
some more legacy flags.
Given some TestFlags for the version of Cabal that cabal-install was built with, and a target older Version of Cabal that we want to pass these flags to, convert the flags into a form that will be accepted by the older Setup script. Generally speaking, this just means filtering out flags that the old Cabal library doesn't understand, but in some cases it may also mean "emulating" a feature using some more legacy flags.
Given some ReplFlags for the version of Cabal that
cabal-install was built with, and a target older Version of
Cabal that we want to pass these flags to, convert the
flags into a form that will be accepted by the older
Setup script. Generally speaking, this just means filtering
out flags that the old Cabal library doesn't understand, but
in some cases it may also mean "emulating" a feature using
some more legacy flags.
Options for the bench command.
Not to be confused with the benchmarkOptions field of the BenchmarkFlags record!
Given some BenchmarkFlags for the version of Cabal that
cabal-install was built with, and a target older Version of
Cabal that we want to pass these flags to, convert the
flags into a form that will be accepted by the older
Setup script. Generally speaking, this just means filtering
out flags that the old Cabal library doesn't understand, but
in some cases it may also mean "emulating" a feature using
some more legacy flags.
Install takes the same flags as configure along with a few extras.
Constructors
InstallFlagsinstallDocumentation :: Flag BoolinstallHaddockIndex :: Flag PathTemplateinstallDest :: Flag CopyDestinstallDryRun :: Flag BoolinstallOnlyDownload :: Flag BoolinstallMaxBackjumps :: Flag IntinstallReorderGoals :: Flag ReorderGoalsinstallCountConflicts :: Flag CountConflictsinstallFineGrainedConflicts :: Flag FineGrainedConflictsinstallMinimizeConflictSet :: Flag MinimizeConflictSetinstallIndependentGoals :: Flag IndependentGoalsinstallPreferOldest :: Flag PreferOldestinstallShadowPkgs :: Flag ShadowPkgsinstallStrongFlags :: Flag StrongFlagsinstallAllowBootLibInstalls :: Flag AllowBootLibInstallsinstallOnlyConstrained :: Flag OnlyConstrainedinstallReinstall :: Flag BoolinstallAvoidReinstalls :: Flag AvoidReinstallsinstallOverrideReinstall :: Flag BoolinstallUpgradeDeps :: Flag BoolinstallOnly :: Flag BoolinstallOnlyDeps :: Flag BoolinstallIndexState :: Flag TotalIndexStateinstallRootCmd :: Flag StringinstallSummaryFile :: NubList PathTemplateinstallLogFile :: Flag PathTemplateinstallBuildReports :: Flag ReportLevelinstallReportPlanningFailure :: Flag BoolinstallSymlinkBinDir :: Flag FilePathinstallPerComponent :: Flag BoolinstallNumJobs :: Flag (Maybe Int)installUseSemaphore :: Flag BoolinstallKeepGoing :: Flag BoolinstallRunTests :: Flag BoolinstallOfflineMode :: Flag Bool
Instances7Eq, Show, Generic, Semigroup, Monoid, Binary, …
Eq InstallFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupShow InstallFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupGeneric InstallFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupSemigroup InstallFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupMonoid InstallFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupBinary InstallFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setuptype Rep InstallFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"InstallFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"InstallFlags"
'PrefixI 'True) (((((S1 ('MetaSel ('Just"installDocumentation"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"installHaddockIndex"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PathTemplate))) :*: (S1 ('MetaSel ('Just"installDest"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag CopyDest)) :*: S1 ('MetaSel ('Just"installDryRun"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"installOnlyDownload"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"installMaxBackjumps"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Int))) :*: (S1 ('MetaSel ('Just"installReorderGoals"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag ReorderGoals)) :*: S1 ('MetaSel ('Just"installCountConflicts"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag CountConflicts))))) :*: (((S1 ('MetaSel ('Just"installFineGrainedConflicts"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FineGrainedConflicts)) :*: S1 ('MetaSel ('Just"installMinimizeConflictSet"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag MinimizeConflictSet))) :*: (S1 ('MetaSel ('Just"installIndependentGoals"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag IndependentGoals)) :*: S1 ('MetaSel ('Just"installPreferOldest"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PreferOldest)))) :*: ((S1 ('MetaSel ('Just"installShadowPkgs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag ShadowPkgs)) :*: S1 ('MetaSel ('Just"installStrongFlags"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag StrongFlags))) :*: (S1 ('MetaSel ('Just"installAllowBootLibInstalls"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag AllowBootLibInstalls)) :*: (S1 ('MetaSel ('Just"installOnlyConstrained"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag OnlyConstrained)) :*: S1 ('MetaSel ('Just"installReinstall"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))))))) :*: ((((S1 ('MetaSel ('Just"installAvoidReinstalls"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag AvoidReinstalls)) :*: S1 ('MetaSel ('Just"installOverrideReinstall"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"installUpgradeDeps"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"installOnly"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"installOnlyDeps"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"installIndexState"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag TotalIndexState))) :*: (S1 ('MetaSel ('Just"installRootCmd"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)) :*: (S1 ('MetaSel ('Just"installSummaryFile"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NubList PathTemplate)) :*: S1 ('MetaSel ('Just"installLogFile"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PathTemplate)))))) :*: (((S1 ('MetaSel ('Just"installBuildReports"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag ReportLevel)) :*: S1 ('MetaSel ('Just"installReportPlanningFailure"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"installSymlinkBinDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just"installPerComponent"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"installNumJobs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag (Maybe Int))) :*: S1 ('MetaSel ('Just"installUseSemaphore"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"installKeepGoing"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: (S1 ('MetaSel ('Just"installRunTests"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"installOfflineMode"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))))))))
Given some HaddockFlags for the version of Cabal that
cabal-install was built with, and a target older Version of
Cabal that we want to pass these flags to, convert the
flags into a form that will be accepted by the older
Setup script. Generally speaking, this just means filtering
out flags that the old Cabal library doesn't understand, but
in some cases it may also mean "emulating" a feature using
some more legacy flags.
Constructors
Instances4Generic, Semigroup, Monoid, Rep
Generic ListFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupSemigroup ListFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupMonoid ListFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setuptype Rep ListFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"ListFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"ListFlags"
'PrefixI 'True) ((S1 ('MetaSel ('Just"listInstalled"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: (S1 ('MetaSel ('Just"listSimpleOutput"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"listCaseInsensitive"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: (S1 ('MetaSel ('Just"listVerbosity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag VerbosityFlags)) :*: (S1 ('MetaSel ('Just"listPackageDBs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Maybe PackageDB]) :*: S1 ('MetaSel ('Just"listHcPath"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))))))
Constructors
Instances3Generic, HasVerbosity, Rep
Generic UpdateFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupHasVerbosity UpdateFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.CmdLegacytype Rep UpdateFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"UpdateFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"UpdateFlags"
'PrefixI 'True) (S1 ('MetaSel ('Just"updateVerbosity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag VerbosityFlags)) :*: S1 ('MetaSel ('Just"updateIndexState"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag TotalIndexState))))
Constructors
Instances4Generic, Semigroup, Monoid, Rep
Generic InfoFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupSemigroup InfoFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupMonoid InfoFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setuptype Rep InfoFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"InfoFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"InfoFlags"
'PrefixI 'True) (S1 ('MetaSel ('Just"infoVerbosity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag VerbosityFlags)) :*: S1 ('MetaSel ('Just"infoPackageDBs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Maybe PackageDB])))
Constructors
FetchFlagsfetchDeps :: Flag BoolfetchDryRun :: Flag BoolfetchSolver :: Flag PreSolverfetchMaxBackjumps :: Flag IntfetchReorderGoals :: Flag ReorderGoalsfetchCountConflicts :: Flag CountConflictsfetchFineGrainedConflicts :: Flag FineGrainedConflictsfetchMinimizeConflictSet :: Flag MinimizeConflictSetfetchIndependentGoals :: Flag IndependentGoalsfetchPreferOldest :: Flag PreferOldestfetchShadowPkgs :: Flag ShadowPkgsfetchStrongFlags :: Flag StrongFlagsfetchAllowBootLibInstalls :: Flag AllowBootLibInstallsfetchOnlyConstrained :: Flag OnlyConstrainedfetchTests :: Flag BoolfetchBenchmarks :: Flag BoolfetchVerbosity :: Flag VerbosityFlags
Constructors
FreezeFlagsfreezeDryRun :: Flag BoolfreezeTests :: Flag BoolfreezeBenchmarks :: Flag BoolfreezeSolver :: Flag PreSolverfreezeMaxBackjumps :: Flag IntfreezeReorderGoals :: Flag ReorderGoalsfreezeCountConflicts :: Flag CountConflictsfreezeFineGrainedConflicts :: Flag FineGrainedConflictsfreezeMinimizeConflictSet :: Flag MinimizeConflictSetfreezeIndependentGoals :: Flag IndependentGoalsfreezePreferOldest :: Flag PreferOldestfreezeShadowPkgs :: Flag ShadowPkgsfreezeStrongFlags :: Flag StrongFlagsfreezeAllowBootLibInstalls :: Flag AllowBootLibInstallsfreezeOnlyConstrained :: Flag OnlyConstrainedfreezeVerbosity :: Flag VerbosityFlags
Instances1HasVerbosity
HasVerbosity FreezeFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.CmdLegacy
Instances4Generic, Semigroup, Monoid, Rep
Generic GetFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupSemigroup GetFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupMonoid GetFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setuptype Rep GetFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"GetFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"GetFlags"
'PrefixI 'True) (((S1 ('MetaSel ('Just"getDestDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just"getOnlyPkgDescr"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"getPristine"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"getIndexState"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag TotalIndexState)))) :*: ((S1 ('MetaSel ('Just"getActiveRepos"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag ActiveRepos)) :*: S1 ('MetaSel ('Just"getSourceRepository"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag (Maybe RepoKind)))) :*: (S1 ('MetaSel ('Just"getVerbosity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag VerbosityFlags)) :*: S1 ('MetaSel ('Just"getRepoName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag RepoName))))))
Constructors
Instances1Show
Show CheckFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup
Constructors
Instances4Generic, Semigroup, Monoid, Rep
Generic UploadFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupSemigroup UploadFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupMonoid UploadFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setuptype Rep UploadFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"UploadFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"UploadFlags"
'PrefixI 'True) (((S1 ('MetaSel ('Just"uploadCandidate"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag IsCandidate)) :*: S1 ('MetaSel ('Just"uploadDoc"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"uploadToken"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Token)) :*: S1 ('MetaSel ('Just"uploadUsername"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Username)))) :*: ((S1 ('MetaSel ('Just"uploadPassword"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Password)) :*: S1 ('MetaSel ('Just"uploadPasswordCmd"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String]))) :*: (S1 ('MetaSel ('Just"uploadVerbosity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag VerbosityFlags)) :*: S1 ('MetaSel ('Just"uploadRepoName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag RepoName))))))
Is this a candidate package or a package to be published?
Instances1Eq
Eq IsCandidateDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup
Constructors
Instances4Generic, Semigroup, Monoid, Rep
Generic ReportFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupSemigroup ReportFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupMonoid ReportFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setuptype Rep ReportFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"ReportFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"ReportFlags"
'PrefixI 'True) ((S1 ('MetaSel ('Just"reportToken"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Token)) :*: S1 ('MetaSel ('Just"reportUsername"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Username))) :*: (S1 ('MetaSel ('Just"reportPassword"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Password)) :*: (S1 ('MetaSel ('Just"reportVerbosity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag VerbosityFlags)) :*: S1 ('MetaSel ('Just"reportRepoName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag RepoName))))))
InitFlags is a subset of flags available in the
.cabal file that represent options that are relevant to the
init command process.
Constructors
InitFlagsinteractive :: Flag Boolquiet :: Flag BoolpackageDir :: Flag FilePathnoComments :: Flag Boolminimal :: Flag BoolsimpleProject :: Flag BoolpackageName :: Flag PackageNameversion :: Flag VersioncabalVersion :: Flag CabalSpecVersionlicense :: Flag SpecLicenseemail :: Flag Stringhomepage :: Flag Stringsynopsis :: Flag Stringcategory :: Flag StringextraSrc :: Flag [String]extraDoc :: Flag [String]packageType :: Flag PackageTypemainIs :: Flag FilePathlanguage :: Flag LanguageexposedModules :: Flag [ModuleName]otherModules :: Flag [ModuleName]otherExts :: Flag [Extension]dependencies :: Flag [Dependency]applicationDirs :: Flag [String]sourceDirs :: Flag [String]buildTools :: Flag [String]initializeTestSuite :: Flag BooltestDirs :: Flag [String]initHcPath :: Flag FilePathinitVerbosity :: Flag VerbosityFlagsoverwrite :: Flag Bool
Instances6Eq, Show, Generic, Semigroup, Monoid, Rep
Eq InitFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Init.TypesShow InitFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Init.TypesGeneric InitFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Init.TypesSemigroup InitFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Init.TypesMonoid InitFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Init.Typestype Rep InitFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Init.Types"InitFlags"
"Distribution.Client.Init.Types"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"InitFlags"
'PrefixI 'True) (((((S1 ('MetaSel ('Just"interactive"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"quiet"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"packageDir"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just"noComments"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"minimal"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"simpleProject"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just"packageName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PackageName)) :*: S1 ('MetaSel ('Just"version"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Version))))) :*: (((S1 ('MetaSel ('Just"cabalVersion"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag CabalSpecVersion)) :*: S1 ('MetaSel ('Just"license"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag SpecLicense))) :*: (S1 ('MetaSel ('Just"author"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)) :*: S1 ('MetaSel ('Just"email"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)))) :*: ((S1 ('MetaSel ('Just"homepage"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)) :*: S1 ('MetaSel ('Just"synopsis"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String))) :*: (S1 ('MetaSel ('Just"category"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String)) :*: S1 ('MetaSel ('Just"extraSrc"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])))))) :*: ((((S1 ('MetaSel ('Just"extraDoc"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])) :*: S1 ('MetaSel ('Just"packageType"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag PackageType))) :*: (S1 ('MetaSel ('Just"mainIs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just"language"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Language)))) :*: ((S1 ('MetaSel ('Just"exposedModules"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [ModuleName])) :*: S1 ('MetaSel ('Just"otherModules"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [ModuleName]))) :*: (S1 ('MetaSel ('Just"otherExts"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [Extension])) :*: S1 ('MetaSel ('Just"dependencies"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [Dependency]))))) :*: (((S1 ('MetaSel ('Just"applicationDirs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])) :*: S1 ('MetaSel ('Just"sourceDirs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String]))) :*: (S1 ('MetaSel ('Just"buildTools"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])) :*: S1 ('MetaSel ('Just"initializeTestSuite"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)))) :*: ((S1 ('MetaSel ('Just"testDirs"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])) :*: S1 ('MetaSel ('Just"initHcPath"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))) :*: (S1 ('MetaSel ('Just"initVerbosity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag VerbosityFlags)) :*: S1 ('MetaSel ('Just"overwrite"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))))))))
Constructors
Instances4Generic, Semigroup, Monoid, Rep
Generic ActAsSetupFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupSemigroup ActAsSetupFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupMonoid ActAsSetupFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setuptype Rep ActAsSetupFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"ActAsSetupFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"ActAsSetupFlags"
'PrefixI 'True) (S1 ('MetaSel ('Just"actAsSetupBuildType"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag BuildType))))
Constructors
Instances4Generic, Semigroup, Monoid, Rep
Generic UserConfigFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupSemigroup UserConfigFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.SetupMonoid UserConfigFlagsDefined in cabal-install-3.18.1.0 · Distribution.Client.Setuptype Rep UserConfigFlags = D1 ('MetaDataDefined in cabal-install-3.18.1.0 · Distribution.Client.Setup"UserConfigFlags"
"Distribution.Client.Setup"
"cabal-install-3.18.1.0-7ZOq76AEqY2DvdiklqxZ41"
'False) (C1 ('MetaCons"UserConfigFlags"
'PrefixI 'True) (S1 ('MetaSel ('Just"userConfigVerbosity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag VerbosityFlags)) :*: (S1 ('MetaSel ('Just"userConfigForce"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just"userConfigAppendLines"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])))))
Given some CopyFlags for the version of Cabal that
cabal-install was built with, and a target older Version of
Cabal that we want to pass these flags to, convert the
flags into a form that will be accepted by the older
Setup script. Generally speaking, this just means filtering
out flags that the old Cabal library doesn't understand, but
in some cases it may also mean "emulating" a feature using
some more legacy flags.
Given some RegisterFlags for the version of Cabal that
cabal-install was built with, and a target older Version of
Cabal that we want to pass these flags to, convert the
flags into a form that will be accepted by the older
Setup script. Generally speaking, this just means filtering
out flags that the old Cabal library doesn't understand, but
in some cases it may also mean "emulating" a feature using
some more legacy flags.