Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data ActualCompiler
- data WhichCompiler = Ghc
- newtype CompilerRepository = CompilerRepository Text
- data CompilerException
- defaultCompilerRepository :: CompilerRepository
- getGhcVersion :: ActualCompiler -> Version
- whichCompiler :: ActualCompiler -> WhichCompiler
- compilerVersionText :: ActualCompiler -> Text
- compilerVersionString :: ActualCompiler -> String
- isWantedCompiler :: VersionCheck -> WantedCompiler -> ActualCompiler -> Bool
- wantedToActual :: WantedCompiler -> Either CompilerException ActualCompiler
- actualToWanted :: ActualCompiler -> WantedCompiler
- parseActualCompiler :: Text -> Either CompilerException ActualCompiler
- whichCompilerL :: Getting r ActualCompiler WhichCompiler
Documentation
data ActualCompiler 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.
Instances
data WhichCompiler Source #
Variety of compiler to use.
Instances
Show WhichCompiler Source # | |
Defined in Stack.Types.Compiler showsPrec :: Int -> WhichCompiler -> ShowS # show :: WhichCompiler -> String # showList :: [WhichCompiler] -> ShowS # | |
Eq WhichCompiler Source # | |
Defined in Stack.Types.Compiler (==) :: WhichCompiler -> WhichCompiler -> Bool # (/=) :: WhichCompiler -> WhichCompiler -> Bool # | |
Ord WhichCompiler Source # | |
Defined in Stack.Types.Compiler compare :: WhichCompiler -> WhichCompiler -> Ordering # (<) :: WhichCompiler -> WhichCompiler -> Bool # (<=) :: WhichCompiler -> WhichCompiler -> Bool # (>) :: WhichCompiler -> WhichCompiler -> Bool # (>=) :: WhichCompiler -> WhichCompiler -> Bool # max :: WhichCompiler -> WhichCompiler -> WhichCompiler # min :: WhichCompiler -> WhichCompiler -> WhichCompiler # |
newtype CompilerRepository Source #
Repository containing the compiler sources
Instances
FromJSON CompilerRepository Source # | |
Defined in Stack.Types.Compiler parseJSON :: Value -> Parser CompilerRepository # parseJSONList :: Value -> Parser [CompilerRepository] # | |
Show CompilerRepository Source # | |
Defined in Stack.Types.Compiler showsPrec :: Int -> CompilerRepository -> ShowS # show :: CompilerRepository -> String # showList :: [CompilerRepository] -> ShowS # |
data CompilerException Source #
Type representing exceptions thrown by functions exported by the Stack.Types.Compiler module.
Instances
Exception CompilerException Source # | |
Defined in Stack.Types.Compiler | |
Show CompilerException Source # | |
Defined in Stack.Types.Compiler showsPrec :: Int -> CompilerException -> ShowS # show :: CompilerException -> String # showList :: [CompilerException] -> ShowS # |
isWantedCompiler :: VersionCheck -> WantedCompiler -> ActualCompiler -> Bool Source #