Various ways that a user may specify a package or package collection.
Constructors
UserTargetNamed PackageVersionConstraintA partially specified package, identified by name and possibly with an exact version or a version constraint.
cabal install foo cabal install foo-1.0 cabal install 'foo < 2'UserTargetLocalDir FilePathA specific package that is unpacked in a local directory, often the current directory.
cabal install . cabal install ../lib/otherNote: in future, if multiple
.cabalfiles are allowed in a single directory then this will refer to the collection of packages.
UserTargetLocalCabalFile FilePathA specific local unpacked package, identified by its
.cabalfile.cabal install foo.cabal cabal install ../lib/other/bar.cabalUserTargetLocalTarball FilePathA specific package that is available as a local tarball file
cabal install dist/foo-1.0.tar.gz cabal install ../build/baz-1.0.tar.gzUserTargetRemoteTarball URIA specific package that is available as a remote tarball file
cabal install http://code.haskell.org/~user/foo/foo-0.9.tar.gz
Instances2Eq, Show
Eq UserTargetDefined in cabal-install-3.12.1.0 · Distribution.Client.TargetsShow UserTargetDefined in cabal-install-3.12.1.0 · Distribution.Client.Targets