Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data I = I Ver Loc
- data Loc
- type PackageId = PackageIdentifier
- data PackageIdentifier = PackageIdentifier {}
- data PackageName
- mkPackageName :: String -> PackageName
- unPackageName :: PackageName -> String
- data PkgconfigName
- mkPkgconfigName :: String -> PkgconfigName
- unPkgconfigName :: PkgconfigName -> String
- data PI qpn = PI qpn I
- type PN = PackageName
- type QPV = Qualified PV
- instI :: I -> Bool
- makeIndependent :: PN -> QPN
- primaryPP :: PackagePath -> Bool
- setupPP :: PackagePath -> Bool
- showI :: I -> String
- showPI :: PI QPN -> String
- unPN :: PN -> String
Documentation
Location. Info about whether a package is installed or not, and where
exactly it is located. For installed packages, uniquely identifies the
package instance via its PId
.
TODO: More information is needed about the repo.
type PackageId = PackageIdentifier #
Type alias so we can use the shorter name PackageId.
data PackageIdentifier #
The name and version of a package.
PackageIdentifier | |
|
Instances
data PackageName #
A package name.
Use mkPackageName
and unPackageName
to convert from/to a
String
.
This type is opaque since Cabal-2.0
Since: Cabal-syntax-2.0.0.2
Instances
mkPackageName :: String -> PackageName #
Construct a PackageName
from a String
mkPackageName
is the inverse to unPackageName
Note: No validations are performed to ensure that the resulting
PackageName
is valid
Since: Cabal-syntax-2.0.0.2
unPackageName :: PackageName -> String #
Convert PackageName
to String
data PkgconfigName #
A pkg-config library name
This is parsed as any valid argument to the pkg-config utility.
Since: Cabal-syntax-2.0.0.2
Instances
mkPkgconfigName :: String -> PkgconfigName #
Construct a PkgconfigName
from a String
mkPkgconfigName
is the inverse to unPkgconfigName
Note: No validations are performed to ensure that the resulting
PkgconfigName
is valid
Since: Cabal-syntax-2.0.0.2
unPkgconfigName :: PkgconfigName -> String #
Convert PkgconfigName
to String
Since: Cabal-syntax-2.0.0.2
Package instance. A package name and an instance.
type PN = PackageName Source #
A package name.
makeIndependent :: PN -> QPN Source #
Qualify a target package with its own name so that its dependencies are not required to be consistent with other targets.
primaryPP :: PackagePath -> Bool Source #
Is the package in the primary group of packages. This is used to
determine (1) if we should try to establish stanza preferences
for this goal, and (2) whether or not a user specified --constraint
should apply to this dependency (grep primaryPP
to see the
use sites). In particular this does not include packages pulled in
as setup deps.