stack-2.9.3.1: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageHaskell2010

Stack.Types.Build

Description

Build-specific types.

Synopsis

Documentation

data BuildException Source #

Type representing exceptions thrown by functions exported by modules with names beginning Stack.Build.

data FlagSource Source #

Constructors

FSCommandLine 
FSStackYaml 

Instances

Instances details
Show FlagSource Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> FlagSource -> ShowS

show :: FlagSource -> String #

showList :: [FlagSource] -> ShowS

Eq FlagSource Source # 
Instance details

Defined in Stack.Types.Build

Ord FlagSource Source # 
Instance details

Defined in Stack.Types.Build

data Installed Source #

Instances

Instances details
Show Installed Source # 
Instance details

Defined in Stack.Types.Package

Methods

showsPrec :: Int -> Installed -> ShowS

show :: Installed -> String #

showList :: [Installed] -> ShowS

Eq Installed Source # 
Instance details

Defined in Stack.Types.Package

data Task Source #

A task to perform when building

Constructors

Task 

Fields

Instances

Instances details
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

Instances details
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

Instances details
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

Instances details
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

Instances details
Show TestOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

Methods

showsPrec :: Int -> TestOpts -> ShowS

show :: TestOpts -> String #

showList :: [TestOpts] -> ShowS

Eq TestOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

data BenchmarkOpts Source #

Options for the FinalAction DoBenchmarks

Constructors

BenchmarkOpts 

Fields

Instances

Instances details
Show BenchmarkOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

Methods

showsPrec :: Int -> BenchmarkOpts -> ShowS

show :: BenchmarkOpts -> String #

showList :: [BenchmarkOpts] -> ShowS

Eq BenchmarkOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

data FileWatchOpts Source #

Instances

Instances details
Show FileWatchOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

Methods

showsPrec :: Int -> FileWatchOpts -> ShowS

show :: FileWatchOpts -> String #

showList :: [FileWatchOpts] -> ShowS

Eq FileWatchOpts Source # 
Instance details

Defined in Stack.Types.Config.Build

data BuildOpts Source #

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

Constructors

BuildOpts 

Fields

Instances

Instances details
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 
BSOnlyLocals

Refuse to build anything in the snapshot database, see https://github.com/commercialhaskell/stack/issues/5272

Instances

Instances details
Show BuildSubset Source # 
Instance details

Defined in Stack.Types.Config.Build

Methods

showsPrec :: Int -> BuildSubset -> ShowS

show :: BuildSubset -> String #

showList :: [BuildSubset] -> ShowS

Eq BuildSubset Source # 
Instance details

Defined in Stack.Types.Config.Build

data TaskType Source #

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

Instances

Instances details
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

Instances details
Monoid IsMutable Source # 
Instance details

Defined in Stack.Types.Build

Semigroup 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

Eq 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

Instances details
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

Instances details
FromJSON BuildCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

parseJSON :: Value -> Parser BuildCache #

parseJSONList :: Value -> Parser [BuildCache] #

ToJSON BuildCache Source # 
Instance details

Defined in Stack.Types.Build

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

Show BuildCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> BuildCache -> ShowS

show :: BuildCache -> String #

showList :: [BuildCache] -> ShowS

NFData BuildCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: BuildCache -> () #

Eq BuildCache Source # 
Instance details

Defined in Stack.Types.Build

type Rep BuildCache Source # 
Instance details

Defined in Stack.Types.Build

type Rep BuildCache = D1 ('MetaData "BuildCache" "Stack.Types.Build" "stack-2.9.3.1-5tV5BMpy9znGqbVzjDcv4Z" '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

Instances details
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 :: forall r r'. (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 #

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

Show ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> ConfigCache -> ShowS

show :: ConfigCache -> String #

showList :: [ConfigCache] -> ShowS

NFData ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: ConfigCache -> () #

Eq ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

type Rep ConfigCache Source # 
Instance details

Defined in Stack.Types.Build

type Rep ConfigCache = D1 ('MetaData "ConfigCache" "Stack.Types.Build" "stack-2.9.3.1-5tV5BMpy9znGqbVzjDcv4Z" '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

Instances details
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 :: forall r r'. (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 #

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

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

NFData CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: CachePkgSrc -> () #

Eq CachePkgSrc Source # 
Instance details

Defined in Stack.Types.Build

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.9.3.1-5tV5BMpy9znGqbVzjDcv4Z" '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.

newtype FileCacheInfo Source #

Constructors

FileCacheInfo 

Fields

Instances

Instances details
FromJSON FileCacheInfo Source # 
Instance details

Defined in Stack.Types.Package

Methods

parseJSON :: Value -> Parser FileCacheInfo #

parseJSONList :: Value -> Parser [FileCacheInfo] #

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

Methods

showsPrec :: Int -> FileCacheInfo -> ShowS

show :: FileCacheInfo -> String #

showList :: [FileCacheInfo] -> ShowS

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.9.3.1-5tV5BMpy9znGqbVzjDcv4Z" 'True) (C1 ('MetaCons "FileCacheInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "fciHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (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

Instances details
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 :: forall r r'. (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 #

Generic ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

Associated Types

type Rep ConfigureOpts :: Type -> Type

Show ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

Methods

showsPrec :: Int -> ConfigureOpts -> ShowS

show :: ConfigureOpts -> String #

showList :: [ConfigureOpts] -> ShowS

NFData ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

Methods

rnf :: ConfigureOpts -> () #

Eq ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

type Rep ConfigureOpts Source # 
Instance details

Defined in Stack.Types.Build

type Rep ConfigureOpts = D1 ('MetaData "ConfigureOpts" "Stack.Types.Build" "stack-2.9.3.1-5tV5BMpy9znGqbVzjDcv4Z" '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

Instances details
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

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

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 -> () #

Eq (PrecompiledCache base) Source # 
Instance details

Defined in Stack.Types.Build

type Rep (PrecompiledCache base) Source # 
Instance details

Defined in Stack.Types.Build

type Rep (PrecompiledCache base) = D1 ('MetaData "PrecompiledCache" "Stack.Types.Build" "stack-2.9.3.1-5tV5BMpy9znGqbVzjDcv4Z" '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]))))