stack-2.1.3.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Types.Build

Description

Build-specific types.

Synopsis

Documentation

data StackBuildException Source #

data Installed Source #

Instances
Eq Installed Source # 
Instance details

Defined in Stack.Types.Package

Show Installed Source # 
Instance details

Defined in Stack.Types.Package

Methods

showsPrec :: Int -> Installed -> ShowS

show :: Installed -> String #

showList :: [Installed] -> ShowS

data Task Source #

A task to perform when building

Constructors

Task 

Fields

Instances
Show Task Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> Task -> ShowS

show :: Task -> String #

showList :: [Task] -> ShowS

data LocalPackage Source #

Information on a locally available package of source code

Constructors

LocalPackage 

Fields

Instances
Show LocalPackage Source # 
Instance details

Defined in Stack.Types.Package

Methods

showsPrec :: Int -> LocalPackage -> ShowS

show :: LocalPackage -> String #

showList :: [LocalPackage] -> ShowS

data BaseConfigOpts Source #

Basic information used to calculate what the configure options are

Instances
Show BaseConfigOpts Source # 
Instance details

Defined in Stack.Types.Build

data Plan Source #

A complete plan of what needs to be built and how to do it

Constructors

Plan 

Fields

Instances
Show Plan Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> Plan -> ShowS

show :: Plan -> String #

showList :: [Plan] -> ShowS

data TestOpts Source #

Options for the FinalAction DoTests

Constructors

TestOpts 

Fields

Instances
Eq TestOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

Show TestOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

Methods

showsPrec :: Int -> TestOpts -> ShowS

show :: TestOpts -> String #

showList :: [TestOpts] -> ShowS

data BenchmarkOpts Source #

Options for the FinalAction DoBenchmarks

Constructors

BenchmarkOpts 

Fields

Instances
Eq BenchmarkOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

Show BenchmarkOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

Methods

showsPrec :: Int -> BenchmarkOpts -> ShowS

show :: BenchmarkOpts -> String #

showList :: [BenchmarkOpts] -> ShowS

data BuildOpts Source #

Build options that is interpreted by the build command. This is built up from BuildOptsCLI and BuildOptsMonoid

Constructors

BuildOpts 

Fields

Instances
Show BuildOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

Methods

showsPrec :: Int -> BuildOpts -> ShowS

show :: BuildOpts -> String #

showList :: [BuildOpts] -> ShowS

data BuildSubset Source #

Which subset of packages to build

Constructors

BSAll 
BSOnlySnapshot

Only install packages in the snapshot database, skipping packages intended for the local database.

BSOnlyDependencies 
Instances
Eq BuildSubset Source # 
Instance details

Defined in Stack.Types.Config.Build

Show BuildSubset Source # 
Instance details

Defined in Stack.Types.Config.Build

Methods

showsPrec :: Int -> BuildSubset -> ShowS

show :: BuildSubset -> String #

showList :: [BuildSubset] -> ShowS

data TaskType Source #

The type of a task, either building local code or something from the package index (upstream)

Instances
Show TaskType Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> TaskType -> ShowS

show :: TaskType -> String #

showList :: [TaskType] -> ShowS

data IsMutable Source #

Constructors

Mutable 
Immutable 
Instances
Eq IsMutable Source # 
Instance details

Defined in Stack.Types.Build

Show IsMutable Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> IsMutable -> ShowS

show :: IsMutable -> String #

showList :: [IsMutable] -> ShowS

Semigroup IsMutable Source # 
Instance details

Defined in Stack.Types.Build

Monoid IsMutable Source # 
Instance details

Defined in Stack.Types.Build

data TaskConfigOpts Source #

Given the IDs of any missing packages, produce the configure options

Constructors

TaskConfigOpts 

Fields

Instances
Show TaskConfigOpts Source # 
Instance details

Defined in Stack.Types.Build

newtype BuildCache Source #

Stored on disk to know whether the files have changed.

Constructors

BuildCache 

Fields

Instances
Eq BuildCache Source # 
Instance details

Defined in Stack.Types.Build

Show BuildCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> BuildCache -> ShowS

show :: BuildCache -> String #

showList :: [BuildCache] -> ShowS

Generic BuildCache Source # 
Instance details

Defined in Stack.Types.Build

Associated Types

type Rep BuildCache :: Type -> Type

Methods

from :: BuildCache -> Rep BuildCache x

to :: Rep BuildCache x -> BuildCache

ToJSON BuildCache Source # 
Instance details

Defined in Stack.Types.Build

FromJSON BuildCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

parseJSON :: Value -> Parser BuildCache #

parseJSONList :: Value -> Parser [BuildCache] #

NFData BuildCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: BuildCache -> () #

type Rep BuildCache Source # 
Instance details

Defined in Stack.Types.Build

type Rep BuildCache = D1 (MetaData "BuildCache" "Stack.Types.Build" "stack-2.1.3.1-GWHAWn0cOYw62KQweDXGFj" True) (C1 (MetaCons "BuildCache" PrefixI True) (S1 (MetaSel (Just "buildCacheTimes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Map FilePath FileCacheInfo))))

data ConfigCache Source #

Stored on disk to know whether the flags have changed.

Constructors

ConfigCache 

Fields

Instances
Eq ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

Data ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

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

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

toConstr :: ConfigCache -> Constr #

dataTypeOf :: ConfigCache -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> ConfigCache -> ShowS

show :: ConfigCache -> String #

showList :: [ConfigCache] -> ShowS

Generic ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

Associated Types

type Rep ConfigCache :: Type -> Type

Methods

from :: ConfigCache -> Rep ConfigCache x

to :: Rep ConfigCache x -> ConfigCache

NFData ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: ConfigCache -> () #

type Rep ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

type Rep ConfigCache = D1 (MetaData "ConfigCache" "Stack.Types.Build" "stack-2.1.3.1-GWHAWn0cOYw62KQweDXGFj" False) (C1 (MetaCons "ConfigCache" PrefixI True) ((S1 (MetaSel (Just "configCacheOpts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ConfigureOpts) :*: (S1 (MetaSel (Just "configCacheDeps") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Set GhcPkgId)) :*: S1 (MetaSel (Just "configCacheComponents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Set ByteString)))) :*: (S1 (MetaSel (Just "configCacheHaddock") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: (S1 (MetaSel (Just "configCachePkgSrc") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CachePkgSrc) :*: S1 (MetaSel (Just "configCachePathEnvVar") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))

configureOpts Source #

Arguments

:: EnvConfig 
-> BaseConfigOpts 
-> Map PackageIdentifier GhcPkgId

dependencies

-> Bool

local non-extra-dep?

-> IsMutable 
-> Package 
-> ConfigureOpts 

Render a BaseConfigOpts to an actual list of options

data CachePkgSrc Source #

Instances
Eq CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

Data CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

Methods

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

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

toConstr :: CachePkgSrc -> Constr #

dataTypeOf :: CachePkgSrc -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

Methods

readsPrec :: Int -> ReadS CachePkgSrc

readList :: ReadS [CachePkgSrc]

readPrec :: ReadPrec CachePkgSrc

readListPrec :: ReadPrec [CachePkgSrc]

Show CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> CachePkgSrc -> ShowS

show :: CachePkgSrc -> String #

showList :: [CachePkgSrc] -> ShowS

Generic CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

Associated Types

type Rep CachePkgSrc :: Type -> Type

Methods

from :: CachePkgSrc -> Rep CachePkgSrc x

to :: Rep CachePkgSrc x -> CachePkgSrc

NFData CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: CachePkgSrc -> () #

PersistField CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

Methods

toPersistValue :: CachePkgSrc -> PersistValue

fromPersistValue :: PersistValue -> Either Text CachePkgSrc

PersistFieldSql CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

Methods

sqlType :: Proxy CachePkgSrc -> SqlType

type Rep CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

type Rep CachePkgSrc = D1 (MetaData "CachePkgSrc" "Stack.Types.Build" "stack-2.1.3.1-GWHAWn0cOYw62KQweDXGFj" False) (C1 (MetaCons "CacheSrcUpstream" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CacheSrcLocal" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath)))

wantedLocalPackages :: [LocalPackage] -> Set PackageName Source #

Get set of wanted package names from locals.

data FileCacheInfo Source #

Constructors

FileCacheInfo 

Fields

Instances
Eq FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

Show FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

Methods

showsPrec :: Int -> FileCacheInfo -> ShowS

show :: FileCacheInfo -> String #

showList :: [FileCacheInfo] -> ShowS

Generic FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

Associated Types

type Rep FileCacheInfo :: Type -> Type

ToJSON FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

FromJSON FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

Methods

parseJSON :: Value -> Parser FileCacheInfo #

parseJSONList :: Value -> Parser [FileCacheInfo] #

NFData FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

Methods

rnf :: FileCacheInfo -> () #

type Rep FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

type Rep FileCacheInfo = D1 (MetaData "FileCacheInfo" "Stack.Types.Package" "stack-2.1.3.1-GWHAWn0cOYw62KQweDXGFj" False) (C1 (MetaCons "FileCacheInfo" PrefixI True) (S1 (MetaSel (Just "fciModTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CTime) :*: (S1 (MetaSel (Just "fciSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 FileSize) :*: S1 (MetaSel (Just "fciHash") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SHA256))))

data ConfigureOpts Source #

Configure options to be sent to Setup.hs configure

Constructors

ConfigureOpts 

Fields

  • coDirs :: ![String]

    Options related to various paths. We separate these out since they do not have an impact on the contents of the compiled binary for checking if we can use an existing precompiled cache.

  • coNoDirs :: ![String]
     
Instances
Eq ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

Data ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

Methods

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

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

toConstr :: ConfigureOpts -> Constr #

dataTypeOf :: ConfigureOpts -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> ConfigureOpts -> ShowS

show :: ConfigureOpts -> String #

showList :: [ConfigureOpts] -> ShowS

Generic ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

Associated Types

type Rep ConfigureOpts :: Type -> Type

NFData ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: ConfigureOpts -> () #

type Rep ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

type Rep ConfigureOpts = D1 (MetaData "ConfigureOpts" "Stack.Types.Build" "stack-2.1.3.1-GWHAWn0cOYw62KQweDXGFj" False) (C1 (MetaCons "ConfigureOpts" PrefixI True) (S1 (MetaSel (Just "coDirs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [String]) :*: S1 (MetaSel (Just "coNoDirs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [String])))

data PrecompiledCache base Source #

Information on a compiled package: the library conf file (if relevant), the sublibraries (if present) and all of the executable paths.

Constructors

PrecompiledCache 

Fields

Instances
Eq (PrecompiledCache base) Source # 
Instance details

Defined in Stack.Types.Build

Show (PrecompiledCache base) Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> PrecompiledCache base -> ShowS

show :: PrecompiledCache base -> String #

showList :: [PrecompiledCache base] -> ShowS

Generic (PrecompiledCache base) Source # 
Instance details

Defined in Stack.Types.Build

Associated Types

type Rep (PrecompiledCache base) :: Type -> Type

Methods

from :: PrecompiledCache base -> Rep (PrecompiledCache base) x

to :: Rep (PrecompiledCache base) x -> PrecompiledCache base

NFData (PrecompiledCache Abs) Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: PrecompiledCache Abs -> () #

NFData (PrecompiledCache Rel) Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: PrecompiledCache Rel -> () #

type Rep (PrecompiledCache base) Source # 
Instance details

Defined in Stack.Types.Build

type Rep (PrecompiledCache base) = D1 (MetaData "PrecompiledCache" "Stack.Types.Build" "stack-2.1.3.1-GWHAWn0cOYw62KQweDXGFj" False) (C1 (MetaCons "PrecompiledCache" PrefixI True) (S1 (MetaSel (Just "pcLibrary") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Path base File))) :*: (S1 (MetaSel (Just "pcSubLibs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Path base File]) :*: S1 (MetaSel (Just "pcExes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Path base File]))))