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 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
Functor PackageLocation Source # | |||||
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 # | |||||
Defined in Distribution.Client.Types.PackageLocation Methods structure :: Proxy (PackageLocation local) -> Structure structureHash' :: Tagged (PackageLocation local) MD5 | |||||
Generic (PackageLocation local) Source # | |||||
Defined in Distribution.Client.Types.PackageLocation Associated Types
Methods from :: PackageLocation local -> Rep (PackageLocation local) x to :: Rep (PackageLocation local) x -> PackageLocation local | |||||
Show local => Show (PackageLocation local) Source # | |||||
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) Source # | |||||
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 # | |||||
Defined in Distribution.Client.Types.PackageLocation Methods (==) :: PackageLocation local -> PackageLocation local -> Bool # (/=) :: PackageLocation local -> PackageLocation local -> Bool # | |||||
Ord local => Ord (PackageLocation local) Source # | |||||
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) Source # | |||||
Defined in Distribution.Client.Types.PackageLocation type Rep (PackageLocation local) = D1 ('MetaData "PackageLocation" "Distribution.Client.Types.PackageLocation" "cabal-install-3.10.3.0-L4zNVMZXCZBA52ecuFrY9Q" '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) Source #
type ResolvedPkgLoc = PackageLocation FilePath Source #
type UnresolvedSourcePackage = SourcePackage UnresolvedPkgLoc Source #
Convenience alias for 'SourcePackage UnresolvedPkgLoc'.