Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data GHCVariant
- class HasGHCVariant env where
- ghcVariantL :: SimpleGetter env GHCVariant
- ghcVariantName :: GHCVariant -> String
- ghcVariantSuffix :: GHCVariant -> String
- parseGHCVariant :: MonadThrow m => String -> m GHCVariant
Documentation
data GHCVariant Source #
Specialized variant of GHC (e.g. libgmp4 or integer-simple)
GHCStandard | Standard bindist |
GHCIntegerSimple | Bindist that uses integer-simple |
GHCNativeBignum | Bindist that uses the Haskell-native big-integer backend |
GHCCustom String | Other bindists |
Instances
FromJSON GHCVariant Source # | |
Defined in Stack.Types.GHCVariant parseJSON :: Value -> Parser GHCVariant # parseJSONList :: Value -> Parser [GHCVariant] # | |
Show GHCVariant Source # | |
Defined in Stack.Types.GHCVariant showsPrec :: Int -> GHCVariant -> ShowS # show :: GHCVariant -> String # showList :: [GHCVariant] -> ShowS # | |
HasGHCVariant GHCVariant Source # | |
Defined in Stack.Types.GHCVariant |
class HasGHCVariant env where Source #
Class for environment values which have a GHCVariant
ghcVariantL :: SimpleGetter env GHCVariant Source #
Instances
HasGHCVariant PathInfo Source # | |
Defined in Stack.Path | |
HasGHCVariant BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasGHCVariant Config Source # | |
Defined in Stack.Types.Config | |
HasGHCVariant EnvConfig Source # | |
Defined in Stack.Types.EnvConfig | |
HasGHCVariant GHCVariant Source # | |
Defined in Stack.Types.GHCVariant | |
HasGHCVariant GetPackageFileContext Source # | |
ghcVariantName :: GHCVariant -> String Source #
Render a GHC variant to a String.
ghcVariantSuffix :: GHCVariant -> String Source #
Render a GHC variant to a String suffix.
parseGHCVariant :: MonadThrow m => String -> m GHCVariant Source #
Parse GHC variant from a String.