HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulecabal-install-3.16.0.0Haskell2010

Distribution.Client.GlobalFlags

  • 2 types
  • 3 values
datadata GlobalFlags
#

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

Instances5Show, Generic, Semigroup, Monoid, Rep
datadata RepoContext
#

Access to repositories

Constructors

  • RepoContext
    • 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)?