cabal-install-3.12.1.0: The command-line interface for Cabal and Hackage.

Copyright | (c) David Himmelstrup 2005
License | BSD-like
Maintainer | lemmih@gmail.com
Stability | provisional
Portability | portable
Safe Haskell | None
Language | Haskell2010

Distribution.Client.Setup

Description

Synopsis

- globalCommand :: [Command action] -> CommandUI GlobalFlags
- data GlobalFlags = GlobalFlags {
  - globalVersion :: Flag Bool
  - globalNumericVersion :: Flag Bool
  - globalConfigFile :: Flag FilePath
  - globalConstraintsFile :: Flag FilePath
  - globalRemoteRepos :: NubList RemoteRepo
  - globalCacheDir :: Flag FilePath
  - globalLocalNoIndexRepos :: NubList LocalRepo
  - globalActiveRepos :: Flag ActiveRepos
  - globalLogsDir :: Flag FilePath
  - globalIgnoreExpiry :: Flag Bool
  - globalHttpTransport :: Flag String
  - globalNix :: Flag Bool
  - globalStoreDir :: Flag FilePath
  - globalProgPathExtra :: NubList FilePath
  }
- defaultGlobalFlags :: GlobalFlags
- data RepoContext = RepoContext {
  - repoContextRepos :: [Repo]
  - repoContextGetTransport :: IO HttpTransport
  - repoContextWithSecureRepo :: forall a. Repo -> (forall (down :: Type -> Type). Repository down -> IO a) -> IO a
  - repoContextIgnoreExpiry :: Bool
  }
- withRepoContext :: Verbosity -> GlobalFlags -> (RepoContext -> IO a) -> IO a
- configureCommand :: CommandUI ConfigFlags
- data ConfigFlags = ConfigFlags {
  - configArgs :: [String]
  - configPrograms_ :: Option' (Last' ProgramDb)
  - configProgramPaths :: [(String, FilePath)]
  - configProgramArgs :: [(String, [String])]
  - configProgramPathExtra :: NubList FilePath
  - configHcFlavor :: Flag CompilerFlavor
  - configHcPath :: Flag FilePath
  - configHcPkg :: Flag FilePath
  - configVanillaLib :: Flag Bool
  - configProfLib :: Flag Bool
  - configSharedLib :: Flag Bool
  - configStaticLib :: Flag Bool
  - configDynExe :: Flag Bool
  - configFullyStaticExe :: Flag Bool
  - configProfExe :: Flag Bool
  - configProf :: Flag Bool
  - configProfDetail :: Flag ProfDetailLevel
  - configProfLibDetail :: Flag ProfDetailLevel
  - configConfigureArgs :: [String]
  - configOptimization :: Flag OptimisationLevel
  - configProgPrefix :: Flag PathTemplate
  - configProgSuffix :: Flag PathTemplate
  - configInstallDirs :: InstallDirs (Flag PathTemplate)
  - configScratchDir :: Flag FilePath
  - configExtraLibDirs :: [FilePath]
  - configExtraLibDirsStatic :: [FilePath]
  - configExtraFrameworkDirs :: [FilePath]
  - configExtraIncludeDirs :: [FilePath]
  - configIPID :: Flag String
  - configCID :: Flag ComponentId
  - configDeterministic :: Flag Bool
  - configDistPref :: Flag FilePath
  - configCabalFilePath :: Flag FilePath
  - configVerbosity :: Flag Verbosity
  - configUserInstall :: Flag Bool
  - configPackageDBs :: [Maybe PackageDB]
  - configGHCiLib :: Flag Bool
  - configSplitSections :: Flag Bool
  - configSplitObjs :: Flag Bool
  - configStripExes :: Flag Bool
  - configStripLibs :: Flag Bool
  - configConstraints :: [PackageVersionConstraint]
  - configDependencies :: [GivenComponent]
  - configPromisedDependencies :: [GivenComponent]
  - configInstantiateWith :: [(ModuleName, Module)]
  - configConfigurationsFlags :: FlagAssignment
  - configTests :: Flag Bool
  - configBenchmarks :: Flag Bool
  - configCoverage :: Flag Bool
  - configLibCoverage :: Flag Bool
  - configExactConfiguration :: Flag Bool
  - configFlagError :: Flag String
  - configRelocatable :: Flag Bool
  - configDebugInfo :: Flag DebugInfoLevel
  - configDumpBuildInfo :: Flag DumpBuildInfo
  - configUseResponseFiles :: Flag Bool
  - configAllowDependingOnPrivateLibs :: Flag Bool
  - configCoverageFor :: Flag [UnitId]
  }
- configureOptions :: ShowOrParseArgs -> [OptionField ConfigFlags]
- filterConfigureFlags :: ConfigFlags -> Version -> ConfigFlags
- configPackageDB' :: ConfigFlags -> PackageDBStack
- configCompilerAux' :: ConfigFlags -> IO (Compiler, Platform, ProgramDb)
- configureExCommand :: CommandUI (ConfigFlags, ConfigExFlags)
- data ConfigExFlags = ConfigExFlags {
  - configCabalVersion :: Flag Version
  - configAppend :: Flag Bool
  - configBackup :: Flag Bool
  - configExConstraints :: [(UserConstraint, ConstraintSource)]
  - configPreferences :: [PackageVersionConstraint]
  - configSolver :: Flag PreSolver
  - configAllowNewer :: Maybe AllowNewer
  - configAllowOlder :: Maybe AllowOlder
  - configWriteGhcEnvironmentFilesPolicy :: Flag WriteGhcEnvironmentFilesPolicy
  }
- defaultConfigExFlags :: ConfigExFlags
- buildCommand :: CommandUI BuildFlags
- data BuildFlags = BuildFlags {
  - buildProgramPaths :: [(String, FilePath)]
  - buildProgramArgs :: [(String, [String])]
  - buildDistPref :: Flag FilePath
  - buildVerbosity :: Flag Verbosity
  - buildNumJobs :: Flag (Maybe Int)
  - buildUseSemaphore :: Flag String
  - buildArgs :: [String]
  - buildCabalFilePath :: Flag FilePath
  }
- filterTestFlags :: TestFlags -> Version -> TestFlags
- replCommand :: CommandUI ReplFlags
- testCommand :: CommandUI (BuildFlags, TestFlags)
- benchmarkCommand :: CommandUI (BuildFlags, BenchmarkFlags)
- testOptions :: ShowOrParseArgs -> [OptionField TestFlags]
- benchmarkOptions :: ShowOrParseArgs -> [OptionField BenchmarkFlags]
- configureExOptions :: ShowOrParseArgs -> ConstraintSource -> [OptionField ConfigExFlags]
- reconfigureCommand :: CommandUI (ConfigFlags, ConfigExFlags)
- installCommand :: CommandUI (ConfigFlags, ConfigExFlags, InstallFlags, HaddockFlags, TestFlags, BenchmarkFlags)
- data InstallFlags = InstallFlags {
  - installDocumentation :: Flag Bool
  - installHaddockIndex :: Flag PathTemplate
  - installDest :: Flag CopyDest
  - installDryRun :: Flag Bool
  - installOnlyDownload :: Flag Bool
  - installMaxBackjumps :: Flag Int
  - installReorderGoals :: Flag ReorderGoals
  - installCountConflicts :: Flag CountConflicts
  - installFineGrainedConflicts :: Flag FineGrainedConflicts
  - installMinimizeConflictSet :: Flag MinimizeConflictSet
  - installIndependentGoals :: Flag IndependentGoals
  - installPreferOldest :: Flag PreferOldest
  - installShadowPkgs :: Flag ShadowPkgs
  - installStrongFlags :: Flag StrongFlags
  - installAllowBootLibInstalls :: Flag AllowBootLibInstalls
  - installOnlyConstrained :: Flag OnlyConstrained
  - installReinstall :: Flag Bool
  - installAvoidReinstalls :: Flag AvoidReinstalls
  - installOverrideReinstall :: Flag Bool
  - installUpgradeDeps :: Flag Bool
  - installOnly :: Flag Bool
  - installOnlyDeps :: Flag Bool
  - installIndexState :: Flag TotalIndexState
  - installRootCmd :: Flag String
  - installSummaryFile :: NubList PathTemplate
  - installLogFile :: Flag PathTemplate
  - installBuildReports :: Flag ReportLevel
  - installReportPlanningFailure :: Flag Bool
  - installSymlinkBinDir :: Flag FilePath
  - installPerComponent :: Flag Bool
  - installNumJobs :: Flag (Maybe Int)
  - installUseSemaphore :: Flag Bool
  - installKeepGoing :: Flag Bool
  - installRunTests :: Flag Bool
  - installOfflineMode :: Flag Bool
  }
- installOptions :: ShowOrParseArgs -> [OptionField InstallFlags]
- defaultInstallFlags :: InstallFlags
- filterHaddockArgs :: [String] -> Version -> [String]
- filterHaddockFlags :: HaddockFlags -> Version -> HaddockFlags
- haddockOptions :: ShowOrParseArgs -> [OptionField HaddockFlags]
- defaultSolver :: PreSolver
- defaultMaxBackjumps :: Int
- listCommand :: CommandUI ListFlags
- data ListFlags = ListFlags {
  - listInstalled :: Flag Bool
  - listSimpleOutput :: Flag Bool
  - listCaseInsensitive :: Flag Bool
  - listVerbosity :: Flag Verbosity
  - listPackageDBs :: [Maybe PackageDB]
  - listHcPath :: Flag FilePath
  }
- listNeedsCompiler :: ListFlags -> Bool
- data UpdateFlags = UpdateFlags {
  - updateVerbosity :: Flag Verbosity
  - updateIndexState :: Flag TotalIndexState
  }
- defaultUpdateFlags :: UpdateFlags
- infoCommand :: CommandUI InfoFlags
- data InfoFlags = InfoFlags {
  - infoVerbosity :: Flag Verbosity
  - infoPackageDBs :: [Maybe PackageDB]
  }
- fetchCommand :: CommandUI FetchFlags
- data FetchFlags = FetchFlags {
  - fetchDeps :: Flag Bool
  - fetchDryRun :: Flag Bool
  - fetchSolver :: Flag PreSolver
  - fetchMaxBackjumps :: Flag Int
  - fetchReorderGoals :: Flag ReorderGoals
  - fetchCountConflicts :: Flag CountConflicts
  - fetchFineGrainedConflicts :: Flag FineGrainedConflicts
  - fetchMinimizeConflictSet :: Flag MinimizeConflictSet
  - fetchIndependentGoals :: Flag IndependentGoals
  - fetchPreferOldest :: Flag PreferOldest
  - fetchShadowPkgs :: Flag ShadowPkgs
  - fetchStrongFlags :: Flag StrongFlags
  - fetchAllowBootLibInstalls :: Flag AllowBootLibInstalls
  - fetchOnlyConstrained :: Flag OnlyConstrained
  - fetchTests :: Flag Bool
  - fetchBenchmarks :: Flag Bool
  - fetchVerbosity :: Flag Verbosity
  }
- freezeCommand :: CommandUI FreezeFlags
- data FreezeFlags = FreezeFlags {
  - freezeDryRun :: Flag Bool
  - freezeTests :: Flag Bool
  - freezeBenchmarks :: Flag Bool
  - freezeSolver :: Flag PreSolver
  - freezeMaxBackjumps :: Flag Int
  - freezeReorderGoals :: Flag ReorderGoals
  - freezeCountConflicts :: Flag CountConflicts
  - freezeFineGrainedConflicts :: Flag FineGrainedConflicts
  - freezeMinimizeConflictSet :: Flag MinimizeConflictSet
  - freezeIndependentGoals :: Flag IndependentGoals
  - freezePreferOldest :: Flag PreferOldest
  - freezeShadowPkgs :: Flag ShadowPkgs
  - freezeStrongFlags :: Flag StrongFlags
  - freezeAllowBootLibInstalls :: Flag AllowBootLibInstalls
  - freezeOnlyConstrained :: Flag OnlyConstrained
  - freezeVerbosity :: Flag Verbosity
  }
- genBoundsCommand :: CommandUI FreezeFlags
- getCommand :: CommandUI GetFlags
- unpackCommand :: CommandUI GetFlags
- data GetFlags = GetFlags {
  - getDestDir :: Flag FilePath
  - getOnlyPkgDescr :: Flag Bool
  - getPristine :: Flag Bool
  - getIndexState :: Flag TotalIndexState
  - getActiveRepos :: Flag ActiveRepos
  - getSourceRepository :: Flag (Maybe RepoKind)
  - getVerbosity :: Flag Verbosity
  }
- checkCommand :: CommandUI CheckFlags
- data CheckFlags = CheckFlags {
  - checkVerbosity :: Flag Verbosity
  - checkIgnore :: [CheckExplanationIDString]
  }
- formatCommand :: CommandUI (Flag Verbosity)
- uploadCommand :: CommandUI UploadFlags
- data UploadFlags = UploadFlags {
  - uploadCandidate :: Flag IsCandidate
  - uploadDoc :: Flag Bool
  - uploadToken :: Flag Token
  - uploadUsername :: Flag Username
  - uploadPassword :: Flag Password
  - uploadPasswordCmd :: Flag [String]
  - uploadVerbosity :: Flag Verbosity
  }
- data IsCandidate
  - = IsCandidate
  - | IsPublished
- reportCommand :: CommandUI ReportFlags
- data ReportFlags = ReportFlags {
  - reportToken :: Flag Token
  - reportUsername :: Flag Username
  - reportPassword :: Flag Password
  - reportVerbosity :: Flag Verbosity
  }
- runCommand :: CommandUI BuildFlags
- initCommand :: CommandUI InitFlags
- initOptions :: ShowOrParseArgs -> [OptionField InitFlags]
- data InitFlags = InitFlags {
  - interactive :: Flag Bool
  - quiet :: Flag Bool
  - packageDir :: Flag FilePath
  - noComments :: Flag Bool
  - minimal :: Flag Bool
  - simpleProject :: Flag Bool
  - packageName :: Flag PackageName
  - version :: Flag Version
  - cabalVersion :: Flag CabalSpecVersion
  - license :: Flag SpecLicense
  - author :: Flag String
  - email :: Flag String
  - homepage :: Flag String
  - synopsis :: Flag String
  - category :: Flag String
  - extraSrc :: Flag [String]
  - extraDoc :: Flag [String]
  - packageType :: Flag PackageType
  - mainIs :: Flag FilePath
  - language :: Flag Language
  - exposedModules :: Flag [ModuleName]
  - otherModules :: Flag [ModuleName]
  - otherExts :: Flag [Extension]
  - dependencies :: Flag [Dependency]
  - applicationDirs :: Flag [String]
  - sourceDirs :: Flag [String]
  - buildTools :: Flag [String]
  - initializeTestSuite :: Flag Bool
  - testDirs :: Flag [String]
  - initHcPath :: Flag FilePath
  - initVerbosity :: Flag Verbosity
  - overwrite :: Flag Bool
  }
- actAsSetupCommand :: CommandUI ActAsSetupFlags
- data ActAsSetupFlags = ActAsSetupFlags {
  - actAsSetupBuildType :: Flag BuildType
  }
- userConfigCommand :: CommandUI UserConfigFlags
- data UserConfigFlags = UserConfigFlags {
  - userConfigVerbosity :: Flag Verbosity
  - userConfigForce :: Flag Bool
  - userConfigAppendLines :: Flag [String]
  }
- manpageCommand :: CommandUI ManpageFlags
- haddockCommand :: CommandUI HaddockFlags
- cleanCommand :: CommandUI CleanFlags
- copyCommand :: CommandUI CopyFlags
- registerCommand :: CommandUI RegisterFlags
- liftOptions :: (b -> a) -> (a -> b -> b) -> [OptionField a] -> [OptionField b]
- yesNoOpt :: ShowOrParseArgs -> MkOptDescr (b -> Flag Bool) (Flag Bool -> b -> b) b

# Documentation

globalCommand :: [Command action] -> CommandUI GlobalFlags #

data GlobalFlags #

Flags that apply at the top level, not to any sub-command.

Constructors

GlobalFlags |

Fields

- globalVersion :: Flag Bool
- globalNumericVersion :: Flag Bool
- globalConfigFile :: Flag FilePath
- globalConstraintsFile :: Flag FilePath
- globalRemoteRepos :: NubList RemoteRepo

  Available Hackage servers.

- globalCacheDir :: Flag FilePath
- globalLocalNoIndexRepos :: NubList LocalRepo
- globalActiveRepos :: Flag ActiveRepos
- globalLogsDir :: Flag FilePath
- globalIgnoreExpiry :: Flag Bool

  Ignore security expiry dates

- globalHttpTransport :: Flag String
- globalNix :: Flag Bool

  Integrate with Nix

- globalStoreDir :: Flag FilePath
- globalProgPathExtra :: NubList FilePath

  Extra program path used for packagedb lookups in a global context (i.e. for http transports)

#### Instances

Instances details

Monoid GlobalFlags # |
Instance details Defined in Distribution.Client.GlobalFlags Methods mempty :: GlobalFlags # mappend :: GlobalFlags -> GlobalFlags -> GlobalFlags # mconcat :: [GlobalFlags] -> GlobalFlags #
Semigroup GlobalFlags # |
Instance details Defined in Distribution.Client.GlobalFlags Methods (<>) :: GlobalFlags -> GlobalFlags -> GlobalFlags # sconcat :: NonEmpty GlobalFlags -> GlobalFlags # stimes :: Integral b => b -> GlobalFlags -> GlobalFlags #
Generic GlobalFlags # |

Instance details

Defined in Distribution.Client.GlobalFlags

Associated Types

type Rep GlobalFlags |

Instance details

Defined in Distribution.Client.GlobalFlags

type Rep GlobalFlags = D1 ('MetaData "GlobalFlags" "Distribution.Client.GlobalFlags" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "GlobalFlags" 'PrefixI 'True) (((S1 ('MetaSel ('Just "globalVersion") '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 "globalNix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just "globalStoreDir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just "globalProgPathExtra") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NubList FilePath)))))))

Methods

from :: GlobalFlags -> Rep GlobalFlags x #

to :: Rep GlobalFlags x -> GlobalFlags #

Show GlobalFlags # |
Instance details Defined in Distribution.Client.GlobalFlags Methods showsPrec :: Int -> GlobalFlags -> ShowS # show :: GlobalFlags -> String # showList :: [GlobalFlags] -> ShowS #
type Rep GlobalFlags # |

Instance details

Defined in Distribution.Client.GlobalFlags

type Rep GlobalFlags = D1 ('MetaData "GlobalFlags" "Distribution.Client.GlobalFlags" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "GlobalFlags" 'PrefixI 'True) (((S1 ('MetaSel ('Just "globalVersion") '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 "globalNix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))) :*: (S1 ('MetaSel ('Just "globalStoreDir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just "globalProgPathExtra") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NubList FilePath)))))))

defaultGlobalFlags :: GlobalFlags #

data RepoContext #

Access to repositories

Constructors

RepoContext |

Fields

- repoContextRepos :: [Repo]

  All user-specified repositories

- repoContextGetTransport :: IO HttpTransport

  Get 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 a

  Get the (initialized) secure repo

  (the `Repo` type itself is stateless and must remain so, because it must be serializable)

- repoContextIgnoreExpiry :: Bool

  Should we ignore expiry times (when checking security)?

withRepoContext :: Verbosity -> GlobalFlags -> (RepoContext -> IO a) -> IO a #

configureCommand :: CommandUI ConfigFlags #

data ConfigFlags #

Flags to `configure` command.

IMPORTANT: every time a new flag is added, `filterConfigureFlags` should be updated. IMPORTANT: every time a new flag is added, it should be added to the Eq instance

Constructors

ConfigFlags |

Fields

- configArgs :: [String]
- configPrograms_ :: Option' (Last' ProgramDb)

  All programs that `cabal` may run

- configProgramPaths :: [(String, FilePath)]

  user specified programs paths

- configProgramArgs :: [(String, [String])]

  user specified programs args

- configProgramPathExtra :: NubList FilePath

  Extend the $PATH

- configHcFlavor :: Flag CompilerFlavor

  The "flavor" of the compiler, e.g. GHC.

- configHcPath :: Flag FilePath

  given compiler location

- configHcPkg :: Flag FilePath

  given hc-pkg location

- configVanillaLib :: Flag Bool

  Enable vanilla library

- configProfLib :: Flag Bool

  Enable profiling in the library

- configSharedLib :: Flag Bool

  Build shared library

- configStaticLib :: Flag Bool

  Build static library

- configDynExe :: Flag Bool

  Enable dynamic linking of the executables.

- configFullyStaticExe :: Flag Bool

  Enable fully static linking of the executables.

- configProfExe :: Flag Bool

  Enable profiling in the executables.

- configProf :: Flag Bool

  Enable profiling in the library and executables.

- configProfDetail :: Flag ProfDetailLevel

  Profiling detail level in the library and executables.

- configProfLibDetail :: Flag ProfDetailLevel

  Profiling detail level in the library

- configConfigureArgs :: [String]

  Extra arguments to `configure`

- configOptimization :: Flag OptimisationLevel

  Enable optimization.

- configProgPrefix :: Flag PathTemplate

  Installed executable prefix.

- configProgSuffix :: Flag PathTemplate

  Installed executable suffix.

- configInstallDirs :: InstallDirs (Flag PathTemplate)

  Installation paths

- configScratchDir :: Flag FilePath
- configExtraLibDirs :: [FilePath]

  path to search for extra libraries

- configExtraLibDirsStatic :: [FilePath]

  path to search for extra libraries when linking fully static executables

- configExtraFrameworkDirs :: [FilePath]

  path to search for extra frameworks (OS X only)

- configExtraIncludeDirs :: [FilePath]

  path to search for header files

- configIPID :: Flag String

  explicit IPID to be used

- configCID :: Flag ComponentId

  explicit CID to be used

- configDeterministic :: Flag Bool

  be as deterministic as possible (e.g., invariant over GHC, database, etc). Used by the test suite

- configDistPref :: Flag FilePath

  "dist" prefix

- configCabalFilePath :: Flag FilePath

  Cabal file to use

- configVerbosity :: Flag Verbosity

  verbosity level

- configUserInstall :: Flag Bool

  The --user/--global flag

- configPackageDBs :: [Maybe PackageDB]

  Which package DBs to use

- configGHCiLib :: Flag Bool

  Enable compiling library for GHCi

- configSplitSections :: Flag Bool

  Enable -split-sections with GHC

- configSplitObjs :: Flag Bool

  Enable -split-objs with GHC

- configStripExes :: Flag Bool

  Enable executable stripping

- configStripLibs :: Flag Bool

  Enable library stripping

- configConstraints :: [PackageVersionConstraint]

  Additional constraints for dependencies.

- configDependencies :: [GivenComponent]

  The packages depended on which already exist

- configPromisedDependencies :: [GivenComponent]

  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 :: FlagAssignment
- configTests :: Flag Bool

  Enable test suite compilation

- configBenchmarks :: Flag Bool

  Enable benchmark compilation

- configCoverage :: Flag Bool

  Enable program coverage

- configLibCoverage :: Flag Bool

  Enable program coverage (deprecated)

- configExactConfiguration :: Flag Bool

  All direct dependencies and flags are provided on the command line by the user via the '--dependency' and '--flags' options.

- configFlagError :: Flag String

  Halt and show an error message indicating an error in flag assignment

- configRelocatable :: Flag Bool

  Enable relocatable package built

- configDebugInfo :: Flag DebugInfoLevel

  Emit debug info.

- configDumpBuildInfo :: Flag DumpBuildInfo

  Should 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 Bool

  Whether to use response files at all. They're used for such tools as haddock, or ld.

- configAllowDependingOnPrivateLibs :: Flag Bool

  Allow 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).

#### Instances

Instances details

Structured ConfigFlags |
Instance details Defined in Distribution.Simple.Setup.Config Methods structure :: Proxy ConfigFlags -> Structure # structureHash' :: Tagged ConfigFlags MD5
Binary ConfigFlags |
Instance details Defined in Distribution.Simple.Setup.Config Methods put :: ConfigFlags -> Put # get :: Get ConfigFlags # putList :: [ConfigFlags] -> Put #
Monoid ConfigFlags |
Instance details Defined in Distribution.Simple.Setup.Config Methods mempty :: ConfigFlags # mappend :: ConfigFlags -> ConfigFlags -> ConfigFlags # mconcat :: [ConfigFlags] -> ConfigFlags #
Semigroup ConfigFlags |
Instance details Defined in Distribution.Simple.Setup.Config Methods (<>) :: ConfigFlags -> ConfigFlags -> ConfigFlags # sconcat :: NonEmpty ConfigFlags -> ConfigFlags # stimes :: Integral b => b -> ConfigFlags -> ConfigFlags #
Generic ConfigFlags |

Instance details

Defined in Distribution.Simple.Setup.Config

Associated Types

type Rep ConfigFlags |

Instance details

Defined in Distribution.Simple.Setup.Config

type Rep ConfigFlags = D1 ('MetaData "ConfigFlags" "Distribution.Simple.Setup.Config" "Cabal-3.12.0.0-inplace" 'False) (C1 ('MetaCons "ConfigFlags" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "configArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]) :*: (S1 ('MetaSel ('Just "configPrograms_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Option' (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 "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 "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 [FilePath]))) :*: ((S1 ('MetaSel ('Just "configExtraLibDirsStatic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath]) :*: S1 ('MetaSel ('Just "configExtraFrameworkDirs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath])) :*: (S1 ('MetaSel ('Just "configExtraIncludeDirs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath]) :*: 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 "configDistPref") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)))) :*: ((S1 ('MetaSel ('Just "configCabalFilePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just "configVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity))) :*: (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 [GivenComponent]) :*: (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])))))))))

Methods

from :: ConfigFlags -> Rep ConfigFlags x #

to :: Rep ConfigFlags x -> ConfigFlags #

Read ConfigFlags |
Instance details Defined in Distribution.Simple.Setup.Config Methods readsPrec :: Int -> ReadS ConfigFlags # readList :: ReadS [ConfigFlags] # readPrec :: ReadPrec ConfigFlags # readListPrec :: ReadPrec [ConfigFlags] #
Show ConfigFlags |
Instance details Defined in Distribution.Simple.Setup.Config Methods showsPrec :: Int -> ConfigFlags -> ShowS # show :: ConfigFlags -> String # showList :: [ConfigFlags] -> ShowS #
Eq ConfigFlags |
Instance details Defined in Distribution.Simple.Setup.Config Methods (==) :: ConfigFlags -> ConfigFlags -> Bool # (/=) :: ConfigFlags -> ConfigFlags -> Bool #
type Rep ConfigFlags |

Instance details

Defined in Distribution.Simple.Setup.Config

type Rep ConfigFlags = D1 ('MetaData "ConfigFlags" "Distribution.Simple.Setup.Config" "Cabal-3.12.0.0-inplace" 'False) (C1 ('MetaCons "ConfigFlags" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "configArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]) :*: (S1 ('MetaSel ('Just "configPrograms_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Option' (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 "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 "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 [FilePath]))) :*: ((S1 ('MetaSel ('Just "configExtraLibDirsStatic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath]) :*: S1 ('MetaSel ('Just "configExtraFrameworkDirs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath])) :*: (S1 ('MetaSel ('Just "configExtraIncludeDirs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath]) :*: 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 "configDistPref") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)))) :*: ((S1 ('MetaSel ('Just "configCabalFilePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just "configVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity))) :*: (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 [GivenComponent]) :*: (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])))))))))

configureOptions :: ShowOrParseArgs -> [OptionField ConfigFlags] #

filterConfigureFlags :: ConfigFlags -> Version -> ConfigFlags #

Given 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.

configPackageDB' :: ConfigFlags -> PackageDBStack #

Get the package database settings from `ConfigFlags`, accounting for `--package-db` and `--user` flags.

configCompilerAux' :: ConfigFlags -> IO (Compiler, Platform, ProgramDb) #

Configure the compiler, but reduce verbosity during this step.

configureExCommand :: CommandUI (ConfigFlags, ConfigExFlags) #

data ConfigExFlags #

cabal configure takes some extra flags beyond runghc Setup configure

Constructors

ConfigExFlags |

Fields

- configCabalVersion :: Flag Version
- configAppend :: Flag Bool
- configBackup :: Flag Bool
- configExConstraints :: [(UserConstraint, ConstraintSource)]
- configPreferences :: [PackageVersionConstraint]
- configSolver :: Flag PreSolver
- configAllowNewer :: Maybe AllowNewer
- configAllowOlder :: Maybe AllowOlder
- configWriteGhcEnvironmentFilesPolicy :: Flag WriteGhcEnvironmentFilesPolicy

#### Instances

Instances details

Monoid ConfigExFlags # |
Instance details Defined in Distribution.Client.Setup Methods mempty :: ConfigExFlags # mappend :: ConfigExFlags -> ConfigExFlags -> ConfigExFlags # mconcat :: [ConfigExFlags] -> ConfigExFlags #
Semigroup ConfigExFlags # |
Instance details Defined in Distribution.Client.Setup Methods (<>) :: ConfigExFlags -> ConfigExFlags -> ConfigExFlags # sconcat :: NonEmpty ConfigExFlags -> ConfigExFlags # stimes :: Integral b => b -> ConfigExFlags -> ConfigExFlags #
Generic ConfigExFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep ConfigExFlags |

Instance details

Defined in Distribution.Client.Setup

type Rep ConfigExFlags = D1 ('MetaData "ConfigExFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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)))))))

Methods

from :: ConfigExFlags -> Rep ConfigExFlags x #

to :: Rep ConfigExFlags x -> ConfigExFlags #

Show ConfigExFlags # |
Instance details Defined in Distribution.Client.Setup Methods showsPrec :: Int -> ConfigExFlags -> ShowS # show :: ConfigExFlags -> String # showList :: [ConfigExFlags] -> ShowS #
Eq ConfigExFlags # |
Instance details Defined in Distribution.Client.Setup Methods (==) :: ConfigExFlags -> ConfigExFlags -> Bool # (/=) :: ConfigExFlags -> ConfigExFlags -> Bool #
type Rep ConfigExFlags # |

Instance details

Defined in Distribution.Client.Setup

type Rep ConfigExFlags = D1 ('MetaData "ConfigExFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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)))))))

defaultConfigExFlags :: ConfigExFlags #

buildCommand :: CommandUI BuildFlags #

data BuildFlags #

Constructors

BuildFlags |

Fields

- buildProgramPaths :: [(String, FilePath)]
- buildProgramArgs :: [(String, [String])]
- buildDistPref :: Flag FilePath
- buildVerbosity :: Flag Verbosity
- buildNumJobs :: Flag (Maybe Int)
- buildUseSemaphore :: Flag String
- buildArgs :: [String]
- buildCabalFilePath :: Flag FilePath

#### Instances

Instances details

Structured BuildFlags |
Instance details Defined in Distribution.Simple.Setup.Build Methods structure :: Proxy BuildFlags -> Structure # structureHash' :: Tagged BuildFlags MD5
Binary BuildFlags |
Instance details Defined in Distribution.Simple.Setup.Build Methods put :: BuildFlags -> Put # get :: Get BuildFlags # putList :: [BuildFlags] -> Put #
Monoid BuildFlags |
Instance details Defined in Distribution.Simple.Setup.Build Methods mempty :: BuildFlags # mappend :: BuildFlags -> BuildFlags -> BuildFlags # mconcat :: [BuildFlags] -> BuildFlags #
Semigroup BuildFlags |
Instance details Defined in Distribution.Simple.Setup.Build Methods (<>) :: BuildFlags -> BuildFlags -> BuildFlags # sconcat :: NonEmpty BuildFlags -> BuildFlags # stimes :: Integral b => b -> BuildFlags -> BuildFlags #
Generic BuildFlags |

Instance details

Defined in Distribution.Simple.Setup.Build

Associated Types

type Rep BuildFlags |

Instance details

Defined in Distribution.Simple.Setup.Build

type Rep BuildFlags = D1 ('MetaData "BuildFlags" "Distribution.Simple.Setup.Build" "Cabal-3.12.0.0-inplace" 'False) (C1 ('MetaCons "BuildFlags" 'PrefixI 'True) (((S1 ('MetaSel ('Just "buildProgramPaths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, FilePath)]) :*: S1 ('MetaSel ('Just "buildProgramArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, [String])])) :*: (S1 ('MetaSel ('Just "buildDistPref") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just "buildVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity)))) :*: ((S1 ('MetaSel ('Just "buildNumJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag (Maybe Int))) :*: S1 ('MetaSel ('Just "buildUseSemaphore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String))) :*: (S1 ('MetaSel ('Just "buildArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]) :*: S1 ('MetaSel ('Just "buildCabalFilePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))))))

Methods

from :: BuildFlags -> Rep BuildFlags x #

to :: Rep BuildFlags x -> BuildFlags #

Read BuildFlags |
Instance details Defined in Distribution.Simple.Setup.Build Methods readsPrec :: Int -> ReadS BuildFlags # readList :: ReadS [BuildFlags] # readPrec :: ReadPrec BuildFlags # readListPrec :: ReadPrec [BuildFlags] #
Show BuildFlags |
Instance details Defined in Distribution.Simple.Setup.Build Methods showsPrec :: Int -> BuildFlags -> ShowS # show :: BuildFlags -> String # showList :: [BuildFlags] -> ShowS #
type Rep BuildFlags |

Instance details

Defined in Distribution.Simple.Setup.Build

type Rep BuildFlags = D1 ('MetaData "BuildFlags" "Distribution.Simple.Setup.Build" "Cabal-3.12.0.0-inplace" 'False) (C1 ('MetaCons "BuildFlags" 'PrefixI 'True) (((S1 ('MetaSel ('Just "buildProgramPaths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, FilePath)]) :*: S1 ('MetaSel ('Just "buildProgramArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, [String])])) :*: (S1 ('MetaSel ('Just "buildDistPref") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just "buildVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity)))) :*: ((S1 ('MetaSel ('Just "buildNumJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag (Maybe Int))) :*: S1 ('MetaSel ('Just "buildUseSemaphore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag String))) :*: (S1 ('MetaSel ('Just "buildArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]) :*: S1 ('MetaSel ('Just "buildCabalFilePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))))))

filterTestFlags :: TestFlags -> Version -> TestFlags #

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.

replCommand :: CommandUI ReplFlags #

testCommand :: CommandUI (BuildFlags, TestFlags) #

benchmarkCommand :: CommandUI (BuildFlags, BenchmarkFlags) #

testOptions :: ShowOrParseArgs -> [OptionField TestFlags] #

benchmarkOptions :: ShowOrParseArgs -> [OptionField BenchmarkFlags] #

configureExOptions :: ShowOrParseArgs -> ConstraintSource -> [OptionField ConfigExFlags] #

reconfigureCommand :: CommandUI (ConfigFlags, ConfigExFlags) #

installCommand :: CommandUI (ConfigFlags, ConfigExFlags, InstallFlags, HaddockFlags, TestFlags, BenchmarkFlags) #

data InstallFlags #

Install takes the same flags as configure along with a few extras.

Constructors

InstallFlags |

Fields

- installDocumentation :: Flag Bool
- installHaddockIndex :: Flag PathTemplate
- installDest :: Flag CopyDest
- installDryRun :: Flag Bool
- installOnlyDownload :: Flag Bool
- installMaxBackjumps :: Flag Int
- installReorderGoals :: Flag ReorderGoals
- installCountConflicts :: Flag CountConflicts
- installFineGrainedConflicts :: Flag FineGrainedConflicts
- installMinimizeConflictSet :: Flag MinimizeConflictSet
- installIndependentGoals :: Flag IndependentGoals
- installPreferOldest :: Flag PreferOldest
- installShadowPkgs :: Flag ShadowPkgs
- installStrongFlags :: Flag StrongFlags
- installAllowBootLibInstalls :: Flag AllowBootLibInstalls
- installOnlyConstrained :: Flag OnlyConstrained
- installReinstall :: Flag Bool
- installAvoidReinstalls :: Flag AvoidReinstalls
- installOverrideReinstall :: Flag Bool
- installUpgradeDeps :: Flag Bool
- installOnly :: Flag Bool
- installOnlyDeps :: Flag Bool
- installIndexState :: Flag TotalIndexState
- installRootCmd :: Flag String
- installSummaryFile :: NubList PathTemplate
- installLogFile :: Flag PathTemplate
- installBuildReports :: Flag ReportLevel
- installReportPlanningFailure :: Flag Bool
- installSymlinkBinDir :: Flag FilePath
- installPerComponent :: Flag Bool
- installNumJobs :: Flag (Maybe Int)
- installUseSemaphore :: Flag Bool
- installKeepGoing :: Flag Bool
- installRunTests :: Flag Bool
- installOfflineMode :: Flag Bool

#### Instances

Instances details

Binary InstallFlags # |
Instance details Defined in Distribution.Client.Setup Methods put :: InstallFlags -> Put # get :: Get InstallFlags # putList :: [InstallFlags] -> Put #
Monoid InstallFlags # |
Instance details Defined in Distribution.Client.Setup Methods mempty :: InstallFlags # mappend :: InstallFlags -> InstallFlags -> InstallFlags # mconcat :: [InstallFlags] -> InstallFlags #
Semigroup InstallFlags # |
Instance details Defined in Distribution.Client.Setup Methods (<>) :: InstallFlags -> InstallFlags -> InstallFlags # sconcat :: NonEmpty InstallFlags -> InstallFlags # stimes :: Integral b => b -> InstallFlags -> InstallFlags #
Generic InstallFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep InstallFlags |

Instance details

Defined in Distribution.Client.Setup

type Rep InstallFlags = D1 ('MetaData "InstallFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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)))))))))

Methods

from :: InstallFlags -> Rep InstallFlags x #

to :: Rep InstallFlags x -> InstallFlags #

Show InstallFlags # |
Instance details Defined in Distribution.Client.Setup Methods showsPrec :: Int -> InstallFlags -> ShowS # show :: InstallFlags -> String # showList :: [InstallFlags] -> ShowS #
Eq InstallFlags # |
Instance details Defined in Distribution.Client.Setup Methods (==) :: InstallFlags -> InstallFlags -> Bool # (/=) :: InstallFlags -> InstallFlags -> Bool #
type Rep InstallFlags # |

Instance details

Defined in Distribution.Client.Setup

type Rep InstallFlags = D1 ('MetaData "InstallFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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)))))))))

installOptions :: ShowOrParseArgs -> [OptionField InstallFlags] #

defaultInstallFlags :: InstallFlags #

filterHaddockArgs :: [String] -> Version -> [String] #

filterHaddockFlags :: HaddockFlags -> Version -> HaddockFlags #

haddockOptions :: ShowOrParseArgs -> [OptionField HaddockFlags] #

defaultSolver :: PreSolver #

defaultMaxBackjumps :: Int #

listCommand :: CommandUI ListFlags #

data ListFlags #

Constructors

ListFlags |

Fields

- listInstalled :: Flag Bool
- listSimpleOutput :: Flag Bool
- listCaseInsensitive :: Flag Bool
- listVerbosity :: Flag Verbosity
- listPackageDBs :: [Maybe PackageDB]
- listHcPath :: Flag FilePath

#### Instances

Instances details

Monoid ListFlags # |
Instance details Defined in Distribution.Client.Setup Methods mempty :: ListFlags # mappend :: ListFlags -> ListFlags -> ListFlags # mconcat :: [ListFlags] -> ListFlags #
Semigroup ListFlags # |
Instance details Defined in Distribution.Client.Setup Methods (<>) :: ListFlags -> ListFlags -> ListFlags # sconcat :: NonEmpty ListFlags -> ListFlags # stimes :: Integral b => b -> ListFlags -> ListFlags #
Generic ListFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep ListFlags |

Instance details

Defined in Distribution.Client.Setup

type Rep ListFlags = D1 ('MetaData "ListFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity)) :*: (S1 ('MetaSel ('Just "listPackageDBs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Maybe PackageDB]) :*: S1 ('MetaSel ('Just "listHcPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))))))

Methods

from :: ListFlags -> Rep ListFlags x #

to :: Rep ListFlags x -> ListFlags #

type Rep ListFlags # |

Instance details

Defined in Distribution.Client.Setup

type Rep ListFlags = D1 ('MetaData "ListFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity)) :*: (S1 ('MetaSel ('Just "listPackageDBs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Maybe PackageDB]) :*: S1 ('MetaSel ('Just "listHcPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath))))))

listNeedsCompiler :: ListFlags -> Bool #

data UpdateFlags #

Constructors

UpdateFlags |

Fields

- updateVerbosity :: Flag Verbosity
- updateIndexState :: Flag TotalIndexState

#### Instances

Instances details

Generic UpdateFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep UpdateFlags |

Instance details

Defined in Distribution.Client.Setup

type Rep UpdateFlags = D1 ('MetaData "UpdateFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "UpdateFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "updateVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity)) :*: S1 ('MetaSel ('Just "updateIndexState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag TotalIndexState))))

Methods

from :: UpdateFlags -> Rep UpdateFlags x #

to :: Rep UpdateFlags x -> UpdateFlags #

type Rep UpdateFlags # |

Instance details

Defined in Distribution.Client.Setup

type Rep UpdateFlags = D1 ('MetaData "UpdateFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "UpdateFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "updateVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity)) :*: S1 ('MetaSel ('Just "updateIndexState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag TotalIndexState))))

defaultUpdateFlags :: UpdateFlags #

infoCommand :: CommandUI InfoFlags #

data InfoFlags #

Constructors

InfoFlags |

Fields

- infoVerbosity :: Flag Verbosity
- infoPackageDBs :: [Maybe PackageDB]

#### Instances

Instances details

Monoid InfoFlags # |
Instance details Defined in Distribution.Client.Setup Methods mempty :: InfoFlags # mappend :: InfoFlags -> InfoFlags -> InfoFlags # mconcat :: [InfoFlags] -> InfoFlags #
Semigroup InfoFlags # |
Instance details Defined in Distribution.Client.Setup Methods (<>) :: InfoFlags -> InfoFlags -> InfoFlags # sconcat :: NonEmpty InfoFlags -> InfoFlags # stimes :: Integral b => b -> InfoFlags -> InfoFlags #
Generic InfoFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep InfoFlags |

Instance details

Defined in Distribution.Client.Setup

type Rep InfoFlags = D1 ('MetaData "InfoFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "InfoFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "infoVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity)) :*: S1 ('MetaSel ('Just "infoPackageDBs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Maybe PackageDB])))

Methods

from :: InfoFlags -> Rep InfoFlags x #

to :: Rep InfoFlags x -> InfoFlags #

type Rep InfoFlags # |

Instance details

Defined in Distribution.Client.Setup

type Rep InfoFlags = D1 ('MetaData "InfoFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "InfoFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "infoVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity)) :*: S1 ('MetaSel ('Just "infoPackageDBs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Maybe PackageDB])))

fetchCommand :: CommandUI FetchFlags #

data FetchFlags #

Constructors

FetchFlags |

Fields

- fetchDeps :: Flag Bool
- fetchDryRun :: Flag Bool
- fetchSolver :: Flag PreSolver
- fetchMaxBackjumps :: Flag Int
- fetchReorderGoals :: Flag ReorderGoals
- fetchCountConflicts :: Flag CountConflicts
- fetchFineGrainedConflicts :: Flag FineGrainedConflicts
- fetchMinimizeConflictSet :: Flag MinimizeConflictSet
- fetchIndependentGoals :: Flag IndependentGoals
- fetchPreferOldest :: Flag PreferOldest
- fetchShadowPkgs :: Flag ShadowPkgs
- fetchStrongFlags :: Flag StrongFlags
- fetchAllowBootLibInstalls :: Flag AllowBootLibInstalls
- fetchOnlyConstrained :: Flag OnlyConstrained
- fetchTests :: Flag Bool
- fetchBenchmarks :: Flag Bool
- fetchVerbosity :: Flag Verbosity

freezeCommand :: CommandUI FreezeFlags #

data FreezeFlags #

Constructors

FreezeFlags |

Fields

- freezeDryRun :: Flag Bool
- freezeTests :: Flag Bool
- freezeBenchmarks :: Flag Bool
- freezeSolver :: Flag PreSolver
- freezeMaxBackjumps :: Flag Int
- freezeReorderGoals :: Flag ReorderGoals
- freezeCountConflicts :: Flag CountConflicts
- freezeFineGrainedConflicts :: Flag FineGrainedConflicts
- freezeMinimizeConflictSet :: Flag MinimizeConflictSet
- freezeIndependentGoals :: Flag IndependentGoals
- freezePreferOldest :: Flag PreferOldest
- freezeShadowPkgs :: Flag ShadowPkgs
- freezeStrongFlags :: Flag StrongFlags
- freezeAllowBootLibInstalls :: Flag AllowBootLibInstalls
- freezeOnlyConstrained :: Flag OnlyConstrained
- freezeVerbosity :: Flag Verbosity

genBoundsCommand :: CommandUI FreezeFlags #

getCommand :: CommandUI GetFlags #

unpackCommand :: CommandUI GetFlags #

data GetFlags #

Constructors

GetFlags |

Fields

- getDestDir :: Flag FilePath
- getOnlyPkgDescr :: Flag Bool
- getPristine :: Flag Bool
- getIndexState :: Flag TotalIndexState
- getActiveRepos :: Flag ActiveRepos
- getSourceRepository :: Flag (Maybe RepoKind)
- getVerbosity :: Flag Verbosity

#### Instances

Instances details

Monoid GetFlags # |
Instance details Defined in Distribution.Client.Setup Methods mempty :: GetFlags # mappend :: GetFlags -> GetFlags -> GetFlags # mconcat :: [GetFlags] -> GetFlags #
Semigroup GetFlags # |
Instance details Defined in Distribution.Client.Setup Methods (<>) :: GetFlags -> GetFlags -> GetFlags # sconcat :: NonEmpty GetFlags -> GetFlags # stimes :: Integral b => b -> GetFlags -> GetFlags #
Generic GetFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep GetFlags |

Instance details

Defined in Distribution.Client.Setup

type Rep GetFlags = D1 ('MetaData "GetFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity))))))

Methods

from :: GetFlags -> Rep GetFlags x #

to :: Rep GetFlags x -> GetFlags #

type Rep GetFlags # |

Instance details

Defined in Distribution.Client.Setup

type Rep GetFlags = D1 ('MetaData "GetFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity))))))

checkCommand :: CommandUI CheckFlags #

data CheckFlags #

Constructors

CheckFlags |

Fields

- checkVerbosity :: Flag Verbosity
- checkIgnore :: [CheckExplanationIDString]

#### Instances

Instances details

Show CheckFlags # |
Instance details Defined in Distribution.Client.Setup Methods showsPrec :: Int -> CheckFlags -> ShowS # show :: CheckFlags -> String # showList :: [CheckFlags] -> ShowS #

formatCommand :: CommandUI (Flag Verbosity) #

uploadCommand :: CommandUI UploadFlags #

data UploadFlags #

Constructors

UploadFlags |

Fields

- uploadCandidate :: Flag IsCandidate
- uploadDoc :: Flag Bool
- uploadToken :: Flag Token
- uploadUsername :: Flag Username
- uploadPassword :: Flag Password
- uploadPasswordCmd :: Flag [String]
- uploadVerbosity :: Flag Verbosity

#### Instances

Instances details

Monoid UploadFlags # |
Instance details Defined in Distribution.Client.Setup Methods mempty :: UploadFlags # mappend :: UploadFlags -> UploadFlags -> UploadFlags # mconcat :: [UploadFlags] -> UploadFlags #
Semigroup UploadFlags # |
Instance details Defined in Distribution.Client.Setup Methods (<>) :: UploadFlags -> UploadFlags -> UploadFlags # sconcat :: NonEmpty UploadFlags -> UploadFlags # stimes :: Integral b => b -> UploadFlags -> UploadFlags #
Generic UploadFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep UploadFlags |

Instance details

Defined in Distribution.Client.Setup

type Rep UploadFlags = D1 ('MetaData "UploadFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity))))))

Methods

from :: UploadFlags -> Rep UploadFlags x #

to :: Rep UploadFlags x -> UploadFlags #

type Rep UploadFlags # |

Instance details

Defined in Distribution.Client.Setup

type Rep UploadFlags = D1 ('MetaData "UploadFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity))))))

data IsCandidate #

Is this a candidate package or a package to be published?

Constructors

IsCandidate |
IsPublished |

#### Instances

Instances details

Eq IsCandidate # |
Instance details Defined in Distribution.Client.Setup Methods (==) :: IsCandidate -> IsCandidate -> Bool # (/=) :: IsCandidate -> IsCandidate -> Bool #

reportCommand :: CommandUI ReportFlags #

data ReportFlags #

Constructors

ReportFlags |

Fields

- reportToken :: Flag Token
- reportUsername :: Flag Username
- reportPassword :: Flag Password
- reportVerbosity :: Flag Verbosity

#### Instances

Instances details

Monoid ReportFlags # |
Instance details Defined in Distribution.Client.Setup Methods mempty :: ReportFlags # mappend :: ReportFlags -> ReportFlags -> ReportFlags # mconcat :: [ReportFlags] -> ReportFlags #
Semigroup ReportFlags # |
Instance details Defined in Distribution.Client.Setup Methods (<>) :: ReportFlags -> ReportFlags -> ReportFlags # sconcat :: NonEmpty ReportFlags -> ReportFlags # stimes :: Integral b => b -> ReportFlags -> ReportFlags #
Generic ReportFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep ReportFlags |

Instance details

Defined in Distribution.Client.Setup

type Rep ReportFlags = D1 ('MetaData "ReportFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity)))))

Methods

from :: ReportFlags -> Rep ReportFlags x #

to :: Rep ReportFlags x -> ReportFlags #

type Rep ReportFlags # |

Instance details

Defined in Distribution.Client.Setup

type Rep ReportFlags = D1 ('MetaData "ReportFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity)))))

runCommand :: CommandUI BuildFlags #

initCommand :: CommandUI InitFlags #

initOptions :: ShowOrParseArgs -> [OptionField InitFlags] #

data InitFlags #

InitFlags is a subset of flags available in the `.cabal` file that represent options that are relevant to the init command process.

Constructors

InitFlags |

Fields

- interactive :: Flag Bool
- quiet :: Flag Bool
- packageDir :: Flag FilePath
- noComments :: Flag Bool
- minimal :: Flag Bool
- simpleProject :: Flag Bool
- packageName :: Flag PackageName
- version :: Flag Version
- cabalVersion :: Flag CabalSpecVersion
- license :: Flag SpecLicense
- author :: Flag String
- email :: Flag String
- homepage :: Flag String
- synopsis :: Flag String
- category :: Flag String
- extraSrc :: Flag [String]
- extraDoc :: Flag [String]
- packageType :: Flag PackageType
- mainIs :: Flag FilePath
- language :: Flag Language
- exposedModules :: Flag [ModuleName]
- otherModules :: Flag [ModuleName]
- otherExts :: Flag [Extension]
- dependencies :: Flag [Dependency]
- applicationDirs :: Flag [String]
- sourceDirs :: Flag [String]
- buildTools :: Flag [String]
- initializeTestSuite :: Flag Bool
- testDirs :: Flag [String]
- initHcPath :: Flag FilePath
- initVerbosity :: Flag Verbosity
- overwrite :: Flag Bool

#### Instances

Instances details

Monoid InitFlags # |
Instance details Defined in Distribution.Client.Init.Types Methods mempty :: InitFlags # mappend :: InitFlags -> InitFlags -> InitFlags # mconcat :: [InitFlags] -> InitFlags #
Semigroup InitFlags # |
Instance details Defined in Distribution.Client.Init.Types Methods (<>) :: InitFlags -> InitFlags -> InitFlags # sconcat :: NonEmpty InitFlags -> InitFlags # stimes :: Integral b => b -> InitFlags -> InitFlags #
Generic InitFlags # |

Instance details

Defined in Distribution.Client.Init.Types

Associated Types

type Rep InitFlags |

Instance details

Defined in Distribution.Client.Init.Types

type Rep InitFlags = D1 ('MetaData "InitFlags" "Distribution.Client.Init.Types" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity)) :*: S1 ('MetaSel ('Just "overwrite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))))))))

Methods

from :: InitFlags -> Rep InitFlags x #

to :: Rep InitFlags x -> InitFlags #

Show InitFlags # |
Instance details Defined in Distribution.Client.Init.Types Methods showsPrec :: Int -> InitFlags -> ShowS # show :: InitFlags -> String # showList :: [InitFlags] -> ShowS #
Eq InitFlags # |
Instance details Defined in Distribution.Client.Init.Types Methods (==) :: InitFlags -> InitFlags -> Bool # (/=) :: InitFlags -> InitFlags -> Bool #
type Rep InitFlags # |

Instance details

Defined in Distribution.Client.Init.Types

type Rep InitFlags = D1 ('MetaData "InitFlags" "Distribution.Client.Init.Types" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 Verbosity)) :*: S1 ('MetaSel ('Just "overwrite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))))))))

actAsSetupCommand :: CommandUI ActAsSetupFlags #

data ActAsSetupFlags #

Constructors

ActAsSetupFlags |

Fields

- actAsSetupBuildType :: Flag BuildType

#### Instances

Instances details

Monoid ActAsSetupFlags # |
Instance details Defined in Distribution.Client.Setup Methods mempty :: ActAsSetupFlags # mappend :: ActAsSetupFlags -> ActAsSetupFlags -> ActAsSetupFlags # mconcat :: [ActAsSetupFlags] -> ActAsSetupFlags #
Semigroup ActAsSetupFlags # |
Instance details Defined in Distribution.Client.Setup Methods (<>) :: ActAsSetupFlags -> ActAsSetupFlags -> ActAsSetupFlags # sconcat :: NonEmpty ActAsSetupFlags -> ActAsSetupFlags # stimes :: Integral b => b -> ActAsSetupFlags -> ActAsSetupFlags #
Generic ActAsSetupFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep ActAsSetupFlags |
Instance details Defined in Distribution.Client.Setup type Rep ActAsSetupFlags = D1 ('MetaData "ActAsSetupFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "ActAsSetupFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "actAsSetupBuildType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag BuildType))))

Methods

from :: ActAsSetupFlags -> Rep ActAsSetupFlags x #

to :: Rep ActAsSetupFlags x -> ActAsSetupFlags #

type Rep ActAsSetupFlags # |
Instance details Defined in Distribution.Client.Setup type Rep ActAsSetupFlags = D1 ('MetaData "ActAsSetupFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "ActAsSetupFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "actAsSetupBuildType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag BuildType))))

userConfigCommand :: CommandUI UserConfigFlags #

data UserConfigFlags #

Constructors

UserConfigFlags |

Fields

- userConfigVerbosity :: Flag Verbosity
- userConfigForce :: Flag Bool
- userConfigAppendLines :: Flag [String]

#### Instances

Instances details

Monoid UserConfigFlags # |
Instance details Defined in Distribution.Client.Setup Methods mempty :: UserConfigFlags # mappend :: UserConfigFlags -> UserConfigFlags -> UserConfigFlags # mconcat :: [UserConfigFlags] -> UserConfigFlags #
Semigroup UserConfigFlags # |
Instance details Defined in Distribution.Client.Setup Methods (<>) :: UserConfigFlags -> UserConfigFlags -> UserConfigFlags # sconcat :: NonEmpty UserConfigFlags -> UserConfigFlags # stimes :: Integral b => b -> UserConfigFlags -> UserConfigFlags #
Generic UserConfigFlags # |

Instance details

Defined in Distribution.Client.Setup

Associated Types

type Rep UserConfigFlags |

Instance details

Defined in Distribution.Client.Setup

type Rep UserConfigFlags = D1 ('MetaData "UserConfigFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "UserConfigFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "userConfigVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity)) :*: (S1 ('MetaSel ('Just "userConfigForce") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just "userConfigAppendLines") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])))))

Methods

from :: UserConfigFlags -> Rep UserConfigFlags x #

to :: Rep UserConfigFlags x -> UserConfigFlags #

type Rep UserConfigFlags # |

Instance details

Defined in Distribution.Client.Setup

type Rep UserConfigFlags = D1 ('MetaData "UserConfigFlags" "Distribution.Client.Setup" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" 'False) (C1 ('MetaCons "UserConfigFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "userConfigVerbosity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Verbosity)) :*: (S1 ('MetaSel ('Just "userConfigForce") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool)) :*: S1 ('MetaSel ('Just "userConfigAppendLines") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag [String])))))

manpageCommand :: CommandUI ManpageFlags #

haddockCommand :: CommandUI HaddockFlags #

cleanCommand :: CommandUI CleanFlags #

copyCommand :: CommandUI CopyFlags #

registerCommand :: CommandUI RegisterFlags #

liftOptions :: (b -> a) -> (a -> b -> b) -> [OptionField a] -> [OptionField b] #

yesNoOpt :: ShowOrParseArgs -> MkOptDescr (b -> Flag Bool) (Flag Bool -> b -> b) b #