Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data PlatformVariant
- class HasPlatform env where
- platformL :: Lens' env Platform
- platformVariantL :: Lens' env PlatformVariant
- platformVariantSuffix :: PlatformVariant -> String
- platformOnlyRelDir :: (MonadReader env m, HasPlatform env, MonadThrow m) => m (Path Rel Dir)
Documentation
data PlatformVariant Source #
A variant of the platform, used to differentiate Docker builds from host
Instances
class HasPlatform env where Source #
Class for environment values which have a Platform
platformL :: Lens' env Platform Source #
platformVariantL :: Lens' env PlatformVariant Source #
Instances
HasPlatform PathInfo Source # | |
Defined in Stack.Path | |
HasPlatform BuildConfig Source # | |
HasPlatform Config Source # | |
Defined in Stack.Types.Config | |
HasPlatform EnvConfig Source # | |
Defined in Stack.Types.EnvConfig | |
HasPlatform GetPackageFileContext Source # | |
HasPlatform (Platform, PlatformVariant) Source # | |
Defined in Stack.Types.Platform |
platformVariantSuffix :: PlatformVariant -> String Source #
Render a platform variant to a String suffix.
platformOnlyRelDir :: (MonadReader env m, HasPlatform env, MonadThrow m) => m (Path Rel Dir) Source #
Relative directory for the platform identifier