cabal-install-3.10.1.0: The command-line interface for Cabal and Hackage.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Client.ProjectFlags

Synopsis

Documentation

data ProjectFlags Source #

Constructors

ProjectFlags 

Fields

  • flagProjectFileName :: Flag FilePath

    The cabal project file name; defaults to cabal.project. The name itself denotes the cabal project file name, but it also is the base of auxiliary project files, such as cabal.project.local and cabal.project.freeze which are also read and written out in some cases. If the path is not found in the current working directory, we will successively probe relative to parent directories until this name is found.

  • flagIgnoreProject :: Flag Bool

    Whether to ignore the local project (i.e. don't search for cabal.project) The exact interpretation might be slightly different per command.

Instances

Instances details
Monoid ProjectFlags Source # 
Instance details

Defined in Distribution.Client.ProjectFlags

Semigroup ProjectFlags Source # 
Instance details

Defined in Distribution.Client.ProjectFlags

Generic ProjectFlags Source # 
Instance details

Defined in Distribution.Client.ProjectFlags

Associated Types

type Rep ProjectFlags :: Type -> Type #

Show ProjectFlags Source # 
Instance details

Defined in Distribution.Client.ProjectFlags

type Rep ProjectFlags Source # 
Instance details

Defined in Distribution.Client.ProjectFlags

type Rep ProjectFlags = D1 ('MetaData "ProjectFlags" "Distribution.Client.ProjectFlags" "cabal-install-3.10.1.0-FbhGUvZ0l0XIx7QbOQfSVh" 'False) (C1 ('MetaCons "ProjectFlags" 'PrefixI 'True) (S1 ('MetaSel ('Just "flagProjectFileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag FilePath)) :*: S1 ('MetaSel ('Just "flagIgnoreProject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Flag Bool))))

removeIgnoreProjectOption :: [OptionField a] -> [OptionField a] Source #

As almost all commands use ProjectFlags but not all can honour "ignore-project" flag, provide this utility to remove the flag parsing from the help message.