Safe Haskell | None |
---|---|
Language | Haskell2010 |
Build the project.
Synopsis
- build :: HasEnvConfig env => (Set (Path Abs File) -> IO ()) -> Maybe FileLock -> BuildOptsCLI -> RIO env ()
- loadPackage :: HasEnvConfig env => PackageLocationIndex FilePath -> Map FlagName Bool -> [Text] -> RIO env Package
- mkBaseConfigOpts :: (MonadIO m, MonadReader env m, HasEnvConfig env, MonadThrow m) => BuildOptsCLI -> m BaseConfigOpts
- queryBuildInfo :: HasEnvConfig env => [Text] -> RIO env ()
- splitObjsWarning :: String
- newtype CabalVersionException = CabalVersionException {}
Documentation
:: HasEnvConfig env | |
=> (Set (Path Abs File) -> IO ()) | callback after discovering all local files |
-> Maybe FileLock | |
-> BuildOptsCLI | |
-> 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.
loadPackage :: HasEnvConfig env => PackageLocationIndex FilePath -> Map FlagName Bool -> [Text] -> RIO env Package Source #
Provide a function for loading package information from the package index
mkBaseConfigOpts :: (MonadIO m, MonadReader env m, HasEnvConfig env, MonadThrow m) => BuildOptsCLI -> m BaseConfigOpts Source #
Get the BaseConfigOpts
necessary for constructing configure options
:: HasEnvConfig env | |
=> [Text] | selectors |
-> RIO env () |
Query information about the build and print the result to stdout in YAML format.
newtype CabalVersionException Source #
Instances
Show CabalVersionException Source # | |
Defined in Stack.Build showsPrec :: Int -> CabalVersionException -> ShowS # show :: CabalVersionException -> String # showList :: [CabalVersionException] -> ShowS # | |
Exception CabalVersionException Source # | |
Defined in Stack.Build |