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

Safe Haskell | None
Language | Haskell2010

Distribution.Client.Types.PackageLocation

Synopsis

- data PackageLocation local
  - = LocalUnpackedPackage FilePath
  - | LocalTarballPackage FilePath
  - | RemoteTarballPackage URI local
  - | RepoTarballPackage Repo PackageId local
  - | RemoteSourceRepoPackage SourceRepoMaybe local
- type UnresolvedPkgLoc = PackageLocation (Maybe FilePath)
- type ResolvedPkgLoc = PackageLocation FilePath
- type UnresolvedSourcePackage = SourcePackage UnresolvedPkgLoc

# Documentation

data PackageLocation local #

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 # |
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) # |
Instance details Defined in Distribution.Client.Types.PackageLocation Methods structure :: Proxy (PackageLocation local) -> Structure # structureHash' :: Tagged (PackageLocation local) MD5
Generic (PackageLocation local) # |
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-EH6AEtqwlbKE3rh89dIk81" '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) # |
Instance details Defined in Distribution.Client.Types.PackageLocation Methods showsPrec :: Int -> PackageLocation local -> ShowS # show :: PackageLocation local -> String # showList :: [PackageLocation local] -> ShowS #
Binary local => Binary (PackageLocation local) # |
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) # |
Instance details Defined in Distribution.Client.Types.PackageLocation Methods (==) :: PackageLocation local -> PackageLocation local -> Bool # (/=) :: PackageLocation local -> PackageLocation local -> Bool #
Ord local => Ord (PackageLocation local) # |
Instance details Defined in Distribution.Client.Types.PackageLocation Methods compare :: PackageLocation local -> PackageLocation local -> Ordering # (<) :: PackageLocation local -> PackageLocation local -> Bool # (<=) :: PackageLocation local -> PackageLocation local -> Bool # (>) :: PackageLocation local -> PackageLocation local -> Bool # (>=) :: PackageLocation local -> PackageLocation local -> Bool # max :: PackageLocation local -> PackageLocation local -> PackageLocation local # min :: PackageLocation local -> PackageLocation local -> PackageLocation local #
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-EH6AEtqwlbKE3rh89dIk81" '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 UnresolvedPkgLoc = PackageLocation (Maybe FilePath) #

type ResolvedPkgLoc = PackageLocation FilePath #

type UnresolvedSourcePackage = SourcePackage UnresolvedPkgLoc #

Convenience alias for 'SourcePackage UnresolvedPkgLoc'.