stack-2.14.0: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageGHC2021

Stack.Types.Package

Synopsis

Documentation

data BuildInfoOpts Source #

GHC options based on cabal information and ghc-options.

Constructors

BuildInfoOpts 

Fields

Instances

Instances details
Show BuildInfoOpts Source # 
Instance details

Defined in Stack.Types.Package

newtype ExeName Source #

Name of an executable.

Constructors

ExeName 

Fields

Instances

Instances details
Data ExeName Source # 
Instance details

Defined in Stack.Types.Package

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ExeName -> c ExeName #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ExeName #

toConstr :: ExeName -> Constr #

dataTypeOf :: ExeName -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ExeName) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ExeName) #

gmapT :: (forall b. Data b => b -> b) -> ExeName -> ExeName #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ExeName -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ExeName -> r #

gmapQ :: (forall d. Data d => d -> u) -> ExeName -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ExeName -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ExeName -> m ExeName #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ExeName -> m ExeName #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ExeName -> m ExeName #

IsString ExeName Source # 
Instance details

Defined in Stack.Types.Package

Methods

fromString :: String -> ExeName #

Generic ExeName Source # 
Instance details

Defined in Stack.Types.Package

Associated Types

type Rep ExeName :: Type -> Type #

Methods

from :: ExeName -> Rep ExeName x #

to :: Rep ExeName x -> ExeName #

Show ExeName Source # 
Instance details

Defined in Stack.Types.Package

NFData ExeName Source # 
Instance details

Defined in Stack.Types.Package

Methods

rnf :: ExeName -> () #

Eq ExeName Source # 
Instance details

Defined in Stack.Types.Package

Methods

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

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

Ord ExeName Source # 
Instance details

Defined in Stack.Types.Package

Hashable ExeName Source # 
Instance details

Defined in Stack.Types.Package

Methods

hashWithSalt :: Int -> ExeName -> Int #

hash :: ExeName -> Int #

type Rep ExeName Source # 
Instance details

Defined in Stack.Types.Package

type Rep ExeName = D1 ('MetaData "ExeName" "Stack.Types.Package" "stack-2.14.0-CKI3CqdNSm89Q6MbWoYM52" 'True) (C1 ('MetaCons "ExeName" 'PrefixI 'True) (S1 ('MetaSel ('Just "unExeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype FileCacheInfo Source #

Constructors

FileCacheInfo 

Fields

Instances

Instances details
FromJSON FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

ToJSON FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

Generic FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

Associated Types

type Rep FileCacheInfo :: Type -> Type #

Show FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

NFData FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

Methods

rnf :: FileCacheInfo -> () #

Eq FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

type Rep FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

type Rep FileCacheInfo = D1 ('MetaData "FileCacheInfo" "Stack.Types.Package" "stack-2.14.0-CKI3CqdNSm89Q6MbWoYM52" 'True) (C1 ('MetaCons "FileCacheInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "fciHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SHA256)))

newtype GetPackageOpts Source #

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

Instances

Instances details
Show GetPackageOpts Source # 
Instance details

Defined in Stack.Types.Package

data Installed Source #

Instances

Instances details
Show Installed Source # 
Instance details

Defined in Stack.Types.Package

Eq Installed Source # 
Instance details

Defined in Stack.Types.Package

data LocalPackage Source #

Information on a locally available package of source code.

Constructors

LocalPackage 

Fields

Instances

Instances details
Show LocalPackage Source # 
Instance details

Defined in Stack.Types.Package

newtype MemoizedWith env a Source #

Constructors

MemoizedWith 

Fields

Instances

Instances details
Applicative (MemoizedWith env) Source # 
Instance details

Defined in Stack.Types.Package

Methods

pure :: a -> MemoizedWith env a #

(<*>) :: MemoizedWith env (a -> b) -> MemoizedWith env a -> MemoizedWith env b #

liftA2 :: (a -> b -> c) -> MemoizedWith env a -> MemoizedWith env b -> MemoizedWith env c #

(*>) :: MemoizedWith env a -> MemoizedWith env b -> MemoizedWith env b #

(<*) :: MemoizedWith env a -> MemoizedWith env b -> MemoizedWith env a #

Functor (MemoizedWith env) Source # 
Instance details

Defined in Stack.Types.Package

Methods

fmap :: (a -> b) -> MemoizedWith env a -> MemoizedWith env b #

(<$) :: a -> MemoizedWith env b -> MemoizedWith env a #

Monad (MemoizedWith env) Source # 
Instance details

Defined in Stack.Types.Package

Methods

(>>=) :: MemoizedWith env a -> (a -> MemoizedWith env b) -> MemoizedWith env b #

(>>) :: MemoizedWith env a -> MemoizedWith env b -> MemoizedWith env b #

return :: a -> MemoizedWith env a #

Show (MemoizedWith env a) Source # 
Instance details

Defined in Stack.Types.Package

Methods

showsPrec :: Int -> MemoizedWith env a -> ShowS #

show :: MemoizedWith env a -> String #

showList :: [MemoizedWith env a] -> ShowS #

data Package Source #

Some package info.

Constructors

Package 

Fields

Instances

Instances details
Show Package Source # 
Instance details

Defined in Stack.Types.Package

Eq Package Source #

Compares the package name.

Instance details

Defined in Stack.Types.Package

Methods

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

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

Ord Package Source #

Compares the package name.

Instance details

Defined in Stack.Types.Package

data PackageConfig Source #

Package build configuration

Constructors

PackageConfig 

Fields

Instances

Instances details
Show PackageConfig Source # 
Instance details

Defined in Stack.Types.Package

data PackageLibraries Source #

Libraries in a package. Since Cabal 2.0, internal libraries are a thing.

Constructors

NoLibraries 
HasLibraries !(Set Text)

the foreign library names, sub libraries get built automatically without explicit component name passing

Instances

Instances details
Show PackageLibraries Source # 
Instance details

Defined in Stack.Types.Package

data PackageSource Source #

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

Constructors

PSFilePath LocalPackage

Package which exist on the filesystem

PSRemote PackageLocationImmutable Version FromSnapshot CommonPackage

Package which is downloaded remotely.

Instances

Instances details
Show PackageSource Source # 
Instance details

Defined in Stack.Types.Package

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

Get the c file path.

dotCabalMain :: DotCabalDescriptor -> Maybe FilePath Source #

Maybe get the main name from the .cabal descriptor.

dotCabalModule :: DotCabalDescriptor -> Maybe ModuleName Source #

Maybe get the module name from the .cabal descriptor.

installedVersion :: Installed -> Version Source #

Get the installed Version.

memoizeRefWith :: MonadIO m => RIO env a -> m (MemoizedWith env a) Source #