| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Stack.Types.ConfigureOpts
Synopsis
- data ConfigureOpts = ConfigureOpts {
- pathRelated :: ![String]
- nonPathRelated :: ![String]
- data BaseConfigOpts = BaseConfigOpts {}
- data PackageConfigureOpts = PackageConfigureOpts {}
- configureOpts :: EnvConfig -> BaseConfigOpts -> Map PackageIdentifier GhcPkgId -> Bool -> IsMutable -> PackageConfigureOpts -> ConfigureOpts
- configureOptsFromDb :: (HasField "configCacheDirOptionValue" b1 String, HasField "configCacheNoDirOptionValue" b2 String) => [Entity b1] -> [Entity b2] -> ConfigureOpts
- renderConfigureOpts :: ConfigureOpts -> [String]
- packageConfigureOptsFromPackage :: Package -> PackageConfigureOpts
Documentation
data ConfigureOpts Source #
Configure options to be sent to Setup.hs configure.
Constructors
| ConfigureOpts | |
Fields
| |
Instances
data BaseConfigOpts Source #
Basic information used to calculate what the configure options are
Constructors
| BaseConfigOpts | |
Instances
| Show BaseConfigOpts Source # | |
Defined in Stack.Types.ConfigureOpts Methods showsPrec :: Int -> BaseConfigOpts -> ShowS # show :: BaseConfigOpts -> String # showList :: [BaseConfigOpts] -> ShowS # | |
data PackageConfigureOpts Source #
All these fields come from the Package data type but bringing the whole
Package is way too much, hence this datatype.
Constructors
| PackageConfigureOpts | |
Fields
| |
Instances
| Show PackageConfigureOpts Source # | |
Defined in Stack.Types.ConfigureOpts Methods showsPrec :: Int -> PackageConfigureOpts -> ShowS # show :: PackageConfigureOpts -> String # showList :: [PackageConfigureOpts] -> ShowS # | |
Arguments
| :: EnvConfig | |
| -> BaseConfigOpts | |
| -> Map PackageIdentifier GhcPkgId | dependencies |
| -> Bool | local non-extra-dep? |
| -> IsMutable | |
| -> PackageConfigureOpts | |
| -> ConfigureOpts |
Render a BaseConfigOpts to an actual list of options
configureOptsFromDb :: (HasField "configCacheDirOptionValue" b1 String, HasField "configCacheNoDirOptionValue" b2 String) => [Entity b1] -> [Entity b2] -> ConfigureOpts Source #
renderConfigureOpts :: ConfigureOpts -> [String] Source #
Render configure options as a single list of options.