cabal-install-3.10.2.1: The command-line interface for Cabal and Hackage.
Safe HaskellNone
LanguageHaskell2010

Distribution.Client.Types.PackageLocation

Synopsis

Documentation

data PackageLocation local Source #

Constructors

LocalUnpackedPackage FilePath

An unpacked package in the given dir, or current dir

LocalTarballPackage FilePath

A package as a tarball that's available as a local tarball

RemoteTarballPackage URI local

A package as a tarball from a remote URI

RepoTarballPackage Repo PackageId local

A package available as a tarball from a repository.

It may be from a local repository or from a remote repository, with a locally cached copy. ie a package available from hackage

RemoteSourceRepoPackage SourceRepoMaybe local

A package available from a version control system source repository

Instances

Instances details
Functor PackageLocation Source # 
Instance details

Defined in Distribution.Client.Types.PackageLocation

Methods

fmap :: (a -> b) -> PackageLocation a -> PackageLocation b #

(<$) :: a -> PackageLocation b -> PackageLocation a #

Structured local => Structured (PackageLocation local) Source # 
Instance details

Defined in Distribution.Client.Types.PackageLocation

Methods

structure :: Proxy (PackageLocation local) -> Structure

structureHash' :: Tagged (PackageLocation local) MD5

Generic (PackageLocation local) Source # 
Instance details

Defined in Distribution.Client.Types.PackageLocation

Associated Types

type Rep (PackageLocation local) 
Instance details

Defined in Distribution.Client.Types.PackageLocation

type Rep (PackageLocation local) = D1 ('MetaData "PackageLocation" "Distribution.Client.Types.PackageLocation" "cabal-install-3.10.2.1-FKU6zlIQbLr93UDEsHFuAd" 'False) ((C1 ('MetaCons "LocalUnpackedPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: C1 ('MetaCons "LocalTarballPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath))) :+: (C1 ('MetaCons "RemoteTarballPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URI) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 local)) :+: (C1 ('MetaCons "RepoTarballPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Repo) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 local))) :+: C1 ('MetaCons "RemoteSourceRepoPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourceRepoMaybe) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 local)))))

Methods

from :: PackageLocation local -> Rep (PackageLocation local) x

to :: Rep (PackageLocation local) x -> PackageLocation local

Show local => Show (PackageLocation local) Source # 
Instance details

Defined in Distribution.Client.Types.PackageLocation

Binary local => Binary (PackageLocation local) Source # 
Instance details

Defined in Distribution.Client.Types.PackageLocation

Methods

put :: PackageLocation local -> Put #

get :: Get (PackageLocation local) #

putList :: [PackageLocation local] -> Put #

Eq local => Eq (PackageLocation local) Source # 
Instance details

Defined in Distribution.Client.Types.PackageLocation

Methods

(==) :: PackageLocation local -> PackageLocation local -> Bool #

(/=) :: PackageLocation local -> PackageLocation local -> Bool #

Ord local => Ord (PackageLocation local) Source # 
Instance details

Defined in Distribution.Client.Types.PackageLocation

type Rep (PackageLocation local) Source # 
Instance details

Defined in Distribution.Client.Types.PackageLocation

type Rep (PackageLocation local) = D1 ('MetaData "PackageLocation" "Distribution.Client.Types.PackageLocation" "cabal-install-3.10.2.1-FKU6zlIQbLr93UDEsHFuAd" 'False) ((C1 ('MetaCons "LocalUnpackedPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: C1 ('MetaCons "LocalTarballPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath))) :+: (C1 ('MetaCons "RemoteTarballPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URI) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 local)) :+: (C1 ('MetaCons "RepoTarballPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Repo) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 local))) :+: C1 ('MetaCons "RemoteSourceRepoPackage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourceRepoMaybe) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 local)))))

type UnresolvedSourcePackage = SourcePackage UnresolvedPkgLoc Source #

Convenience alias for 'SourcePackage UnresolvedPkgLoc'.