stack-1.1.2: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Types.Package

Description

 

Synopsis

Documentation

data Package #

Some package info.

Constructors

Package 

Fields

Instances

Eq Package #

Compares the package name.

Methods

(==) :: Package -> Package -> Bool #

(/=) :: Package -> Package -> Bool #

Ord Package #

Compares the package name.

Show Package # 

newtype GetPackageOpts #

Files that the package depends on, relative to package directory. Argument is the location of the .cabal file

Constructors

GetPackageOpts 

Fields

data BuildInfoOpts #

GHC options based on cabal information and ghc-options.

Constructors

BuildInfoOpts 

Fields

data CabalFileType #

Files to get for a cabal package.

Constructors

AllFiles 
Modules 

newtype GetPackageFiles #

Files that the package depends on, relative to package directory. Argument is the location of the .cabal file

Constructors

GetPackageFiles 

Fields

data PackageWarning #

Warning generated when reading a package

Constructors

UnlistedModulesWarning (Path Abs File) (Maybe String) [ModuleName]

Modules found that are not listed in cabal file

MissingModulesWarning (Path Abs File) (Maybe String) [ModuleName]

Modules not found in file system, which are listed in cabal file

data PackageConfig #

Package build configuration

Constructors

PackageConfig 

Fields

data PackageSource #

Where the package's source is located: local directory or package index

Constructors

PSLocal LocalPackage 
PSUpstream Version InstallLocation (Map FlagName Bool) [Text] (Maybe GitSHA1)

Upstream packages could be installed in either local or snapshot databases; this is what InstallLocation specifies.

class PackageInstallInfo a where #

Datatype which tells how which version of a package to install and where to install it into

Minimal complete definition

piiVersion, piiLocation

data LocalPackage #

Information on a locally available package of source code

Constructors

LocalPackage 

Fields

newtype ModTime #

Used for storage and comparison.

Constructors

ModTime (Integer, Rational) 

Instances

Eq ModTime # 

Methods

(==) :: ModTime -> ModTime -> Bool #

(/=) :: ModTime -> ModTime -> Bool #

Ord ModTime # 
Show ModTime # 
Generic ModTime # 

Associated Types

type Rep ModTime :: * -> * #

Methods

from :: ModTime -> Rep ModTime x #

to :: Rep ModTime x -> ModTime #

Binary ModTime # 

Methods

put :: ModTime -> Put #

get :: Get ModTime #

putList :: [ModTime] -> Put #

NFData ModTime # 

Methods

rnf :: ModTime -> () #

HasStructuralInfo ModTime # 

Methods

structuralInfo :: Proxy * ModTime -> StructuralInfo

HasSemanticVersion ModTime # 

Associated Types

type SemanticVersion ModTime :: Nat

type Rep ModTime # 
type Rep ModTime = D1 (MetaData "ModTime" "Stack.Types.Package" "stack-1.1.2-49dhs7u8deFCRPHWDHyZQB" True) (C1 (MetaCons "ModTime" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Integer, Rational))))
type SemanticVersion ModTime # 
type SemanticVersion ModTime = 0

dotCabalModule :: DotCabalDescriptor -> Maybe ModuleName #

Maybe get the module name from the .cabal descriptor.

dotCabalMain :: DotCabalDescriptor -> Maybe FilePath #

Maybe get the main name from the .cabal descriptor.

data DotCabalPath #

A path resolved from the .cabal file, which is either main-is or an exposedinternalreferenced module.

Constructors

DotCabalModulePath !(Path Abs File) 
DotCabalMainPath !(Path Abs File) 
DotCabalFilePath !(Path Abs File) 
DotCabalCFilePath !(Path Abs File) 

dotCabalModulePath :: DotCabalPath -> Maybe (Path Abs File) #

Get the module path.

dotCabalMainPath :: DotCabalPath -> Maybe (Path Abs File) #

Get the main path.

dotCabalCFilePath :: DotCabalPath -> Maybe (Path Abs File) #

Get the c file path.

dotCabalGetPath :: DotCabalPath -> Path Abs File #

Get the path.

installedVersion :: Installed -> Version #

Get the installed Version.