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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulecabal-install-3.18.1.0Haskell2010

Distribution.Client.DistDirLayout

The layout of the ./dist/ directory where cabal keeps all of its state and build artifacts.

  • 6 types
  • 5 values

DistDirLayout

4 declarations
datadata DistDirLayout
#

The layout of the project state directory. Traditionally this has been called the dist directory.

Constructors

datadata DistDirParams
#

Information which can be used to construct the path to the build directory of a build. This is LESS fine-grained than what goes into the hashed InstalledPackageId, and for good reason: we don't want this path to change if the user, say, adds a dependency to their project.

datadata ProjectFileKey
#

The principal project file is read and parsed. Its file name was either provided with the --project-file option, or it had the default name of cabal.project.

Related ``.local`` and ``.freeze`` files are read and parsed separately.

This key datatype distinguishes between the different project files, so that we can give better error messages, such as encountering an unexpected extension to the principal project file or when a ``.local`` or ``.freeze`` is itself passed as the principal project file or when either are explicitly imported. They should only ever be implicitly imported.

Instances3Eq, Ord, Show
  • Eq ProjectFileKeyDefined in cabal-install-3.18.1.0 · Distribution.Client.DistDirLayout
  • Ord ProjectFileKeyDefined in cabal-install-3.18.1.0 · Distribution.Client.DistDirLayout
  • Show ProjectFileKeyDefined in cabal-install-3.18.1.0 · Distribution.Client.DistDirLayout

ProjectRoot

2 declarations
datadata ProjectRoot
#

Information about the root directory of the project.

It can either be an implicit project root in the current dir if no cabal.project file is found, or an explicit root if either the file is found or the project root directory was specified.

Constructors

Instances2Eq, Show
  • Eq ProjectRootDefined in cabal-install-3.18.1.0 · Distribution.Client.DistDirLayout
  • Show ProjectRootDefined in cabal-install-3.18.1.0 · Distribution.Client.DistDirLayout

StoreDirLayout

2 declarations

CabalDirLayout

3 declarations