Safe Haskell | None |
---|---|
Language | Haskell2010 |
Build the project.
- build :: (StackM env m, HasEnvConfig env, MonadBaseUnlift IO m) => (Set (Path Abs File) -> IO ()) -> Maybe FileLock -> BuildOptsCLI -> m ()
- withLoadPackage :: (StackM env m, HasEnvConfig env, MonadBaseUnlift IO m) => ((PackageName -> Version -> Map FlagName Bool -> [Text] -> IO Package) -> m a) -> m a
- mkBaseConfigOpts :: (MonadIO m, MonadReader env m, HasEnvConfig env, MonadThrow m) => BuildOptsCLI -> m BaseConfigOpts
- queryBuildInfo :: (StackM env m, HasEnvConfig env) => [Text] -> m ()
- splitObjsWarning :: String
- newtype CabalVersionException = CabalVersionException {}
Documentation
:: (StackM env m, HasEnvConfig env, MonadBaseUnlift IO m) | |
=> (Set (Path Abs File) -> IO ()) | callback after discovering all local files |
-> Maybe FileLock | |
-> BuildOptsCLI | |
-> m () |
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.
withLoadPackage :: (StackM env m, HasEnvConfig env, MonadBaseUnlift IO m) => ((PackageName -> Version -> Map FlagName Bool -> [Text] -> IO Package) -> m a) -> m a 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
:: (StackM env m, HasEnvConfig env) | |
=> [Text] | selectors |
-> m () |
Query information about the build and print the result to stdout in YAML format.