| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Stack.Types.Compiler
- data WhichCompiler
- data CVType
- data CompilerVersion (cvType :: CVType)
- actualToWanted :: CompilerVersion CVActual -> CompilerVersion CVWanted
- wantedToActual :: CompilerVersion CVWanted -> CompilerVersion CVActual
- parseCompilerVersion :: Text -> Maybe (CompilerVersion a)
- compilerVersionText :: CompilerVersion a -> Text
- compilerVersionString :: CompilerVersion a -> String
- whichCompiler :: CompilerVersion a -> WhichCompiler
- isWantedCompiler :: VersionCheck -> CompilerVersion CVWanted -> CompilerVersion CVActual -> Bool
- getGhcVersion :: CompilerVersion a -> Version
- compilerExeName :: WhichCompiler -> String
- haddockExeName :: WhichCompiler -> String
Documentation
Whether the compiler version given is the wanted version (what the stack.yaml file, snapshot file, or --resolver argument request), or the actual installed GHC. Depending on the matching requirements, these values could be different.
data CompilerVersion (cvType :: CVType) Source #
Specifies a compiler and its version number(s).
Note that despite having this datatype, stack isn't in a hurry to support compilers other than GHC.
NOTE: updating this will change its binary serialization. The
version number in the BinarySchema instance for MiniBuildPlan
should be updated.
Constructors
| GhcVersion !Version | |
| GhcjsVersion !Version !Version |
Instances
| Eq (CompilerVersion cvType) Source # | |
| Typeable CVType cvType => Data (CompilerVersion cvType) Source # | |
| Ord (CompilerVersion cvType) Source # | |
| Show (CompilerVersion cvType) Source # | |
| Generic (CompilerVersion cvType) Source # | |
| NFData (CompilerVersion a) Source # | |
| ToJSON (CompilerVersion a) Source # | |
| FromJSON (CompilerVersion a) Source # | |
| FromJSONKey (CompilerVersion a) Source # | |
| Store (CompilerVersion a) Source # | |
| type Rep (CompilerVersion cvType) Source # | |
parseCompilerVersion :: Text -> Maybe (CompilerVersion a) Source #
compilerVersionText :: CompilerVersion a -> Text Source #
whichCompiler :: CompilerVersion a -> WhichCompiler Source #
isWantedCompiler :: VersionCheck -> CompilerVersion CVWanted -> CompilerVersion CVActual -> Bool Source #
getGhcVersion :: CompilerVersion a -> Version Source #
haddockExeName :: WhichCompiler -> String Source #