Safe Haskell | None |
---|---|
Language | Haskell2010 |
The general Stack configuration that starts everything off. This should be smart to falback if there is no stack.yaml, instead relying on whatever files are available.
If there is no stack.yaml, and there is a cabal.config, we read in those constraints, and if there's a cabal.sandbox.config, we read any constraints from there and also find the package database from there, etc. And if there's nothing, we should probably default to behaving like cabal, possibly with spitting out a warning that "you should run `stk init` to make things better".
- configOptsParser :: Bool -> Parser ConfigMonoid
- loadConfig :: (MonadLogger m, MonadIO m, MonadCatch m, MonadThrow m, MonadBaseControl IO m, MonadReader env m, HasHttpManager env) => ConfigMonoid -> m (LoadConfig m)
Documentation
configOptsParser :: Bool -> Parser ConfigMonoid Source
Command-line arguments parser for configuration.
:: (MonadLogger m, MonadIO m, MonadCatch m, MonadThrow m, MonadBaseControl IO m, MonadReader env m, HasHttpManager env) | |
=> ConfigMonoid | Config monoid from parsed command-line arguments |
-> m (LoadConfig m) |
Load the configuration, using current directory, environment variables, and defaults as necessary.