| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Stack.Types.Compiler
Synopsis
- 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
data WhichCompiler Source #
Variety of compiler to use.
Instances
| Eq WhichCompiler Source # | |
Defined in Stack.Types.Compiler Methods (==) :: WhichCompiler -> WhichCompiler -> Bool # (/=) :: WhichCompiler -> WhichCompiler -> Bool #  | |
| Ord WhichCompiler Source # | |
Defined in Stack.Types.Compiler Methods compare :: WhichCompiler -> WhichCompiler -> Ordering # (<) :: WhichCompiler -> WhichCompiler -> Bool # (<=) :: WhichCompiler -> WhichCompiler -> Bool # (>) :: WhichCompiler -> WhichCompiler -> Bool # (>=) :: WhichCompiler -> WhichCompiler -> Bool # max :: WhichCompiler -> WhichCompiler -> WhichCompiler # min :: WhichCompiler -> WhichCompiler -> WhichCompiler #  | |
| Show WhichCompiler Source # | |
Defined in Stack.Types.Compiler Methods showsPrec :: Int -> WhichCompiler -> ShowS # show :: WhichCompiler -> String # showList :: [WhichCompiler] -> ShowS #  | |
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.
Constructors
| GhcVersion !Version | |
| GhcjsVersion !Version !Version | 
Instances
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 #