HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecabal-install-3.12.1.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)?