Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ActualCompiler
- data WhichCompiler
- newtype CompilerRepository = CompilerRepository Text
- defaultCompilerRepository :: CompilerRepository
- getGhcVersion :: ActualCompiler -> Version
- whichCompiler :: ActualCompiler -> WhichCompiler
- compilerVersionText :: ActualCompiler -> Text
- compilerVersionString :: ActualCompiler -> String
- isWantedCompiler :: VersionCheck -> WantedCompiler -> ActualCompiler -> Bool
- wantedToActual :: WantedCompiler -> ActualCompiler
- actualToWanted :: ActualCompiler -> WantedCompiler
- parseActualCompiler :: Text -> Either PantryException ActualCompiler
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
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 # | |
Show WhichCompiler Source # | |
Defined in Stack.Types.Compiler showsPrec :: Int -> WhichCompiler -> ShowS # show :: WhichCompiler -> String # showList :: [WhichCompiler] -> ShowS # |
newtype CompilerRepository Source #
Repository containing the compiler sources
Instances
Show CompilerRepository Source # | |
Defined in Stack.Types.Compiler showsPrec :: Int -> CompilerRepository -> ShowS # show :: CompilerRepository -> String # showList :: [CompilerRepository] -> ShowS # | |
FromJSON CompilerRepository Source # | |
Defined in Stack.Types.Compiler parseJSON :: Value -> Parser CompilerRepository # parseJSONList :: Value -> Parser [CompilerRepository] # |
isWantedCompiler :: VersionCheck -> WantedCompiler -> ActualCompiler -> Bool Source #