Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Stack.Build
Description
Build the project.
Synopsis
- build :: HasEnvConfig env => Maybe (Set (Path Abs File) -> IO ()) -> RIO env ()
- buildLocalTargets :: HasEnvConfig env => NonEmpty Text -> RIO env (Either SomeException ())
- loadPackage :: (HasBuildConfig env, HasSourceMap env) => PackageLocationImmutable -> Map FlagName Bool -> [Text] -> [Text] -> RIO env Package
- mkBaseConfigOpts :: HasEnvConfig env => BuildOptsCLI -> RIO env BaseConfigOpts
- queryBuildInfo :: HasEnvConfig env => [Text] -> RIO env ()
- splitObjsWarning :: String
- data CabalVersionException
Documentation
Arguments
:: HasEnvConfig env | |
=> Maybe (Set (Path Abs File) -> IO ()) | callback after discovering all local files |
-> RIO env () |
Build.
If a buildLock is passed there is an important contract here. That lock must protect the snapshot, and it must be safe to unlock it if there are no further modifications to the snapshot to be performed by this build.
buildLocalTargets :: HasEnvConfig env => NonEmpty Text -> RIO env (Either SomeException ()) Source #
Arguments
:: (HasBuildConfig env, HasSourceMap env) | |
=> PackageLocationImmutable | |
-> Map FlagName Bool | |
-> [Text] | GHC options |
-> [Text] | Cabal configure options |
-> RIO env Package |
Provide a function for loading package information from the package index
mkBaseConfigOpts :: HasEnvConfig env => BuildOptsCLI -> RIO env BaseConfigOpts Source #
Get the BaseConfigOpts
necessary for constructing configure options
Arguments
:: HasEnvConfig env | |
=> [Text] | selectors |
-> RIO env () |
Query information about the build and print the result to stdout in YAML format.
data CabalVersionException Source #
Constructors
AllowNewerNotSupported Version | |
CabalVersionNotSupported Version |
Instances
Exception CabalVersionException Source # | |
Defined in Stack.Build | |
Show CabalVersionException Source # | |
Defined in Stack.Build Methods showsPrec :: Int -> CabalVersionException -> ShowS # show :: CabalVersionException -> String # showList :: [CabalVersionException] -> ShowS # |