Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Stack.Types.Compiler
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
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
FromJSON ActualCompiler Source # | |
Defined in Stack.Types.Compiler | |
FromJSONKey ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods fromJSONKey :: FromJSONKeyFunction ActualCompiler fromJSONKeyList :: FromJSONKeyFunction [ActualCompiler] | |
ToJSON ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods toJSON :: ActualCompiler -> Value toEncoding :: ActualCompiler -> Encoding toJSONList :: [ActualCompiler] -> Value toEncodingList :: [ActualCompiler] -> Encoding | |
Data ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ActualCompiler -> c ActualCompiler # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ActualCompiler # toConstr :: ActualCompiler -> Constr # dataTypeOf :: ActualCompiler -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ActualCompiler) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ActualCompiler) # gmapT :: (forall b. Data b => b -> b) -> ActualCompiler -> ActualCompiler # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ActualCompiler -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ActualCompiler -> r # gmapQ :: (forall d. Data d => d -> u) -> ActualCompiler -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ActualCompiler -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ActualCompiler -> m ActualCompiler # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ActualCompiler -> m ActualCompiler # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ActualCompiler -> m ActualCompiler # | |
Generic ActualCompiler Source # | |
Defined in Stack.Types.Compiler Associated Types type Rep ActualCompiler :: Type -> Type | |
Show ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods showsPrec :: Int -> ActualCompiler -> ShowS show :: ActualCompiler -> String # showList :: [ActualCompiler] -> ShowS | |
NFData ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods rnf :: ActualCompiler -> () # | |
Eq ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods (==) :: ActualCompiler -> ActualCompiler -> Bool # (/=) :: ActualCompiler -> ActualCompiler -> Bool # | |
Ord ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods compare :: ActualCompiler -> ActualCompiler -> Ordering # (<) :: ActualCompiler -> ActualCompiler -> Bool # (<=) :: ActualCompiler -> ActualCompiler -> Bool # (>) :: ActualCompiler -> ActualCompiler -> Bool # (>=) :: ActualCompiler -> ActualCompiler -> Bool # max :: ActualCompiler -> ActualCompiler -> ActualCompiler # min :: ActualCompiler -> ActualCompiler -> ActualCompiler # | |
PersistField ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods toPersistValue :: ActualCompiler -> PersistValue fromPersistValue :: PersistValue -> Either Text ActualCompiler | |
PersistFieldSql ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods sqlType :: Proxy ActualCompiler -> SqlType | |
Display ActualCompiler Source # | |
Defined in Stack.Types.Compiler | |
type Rep ActualCompiler Source # | |
Defined in Stack.Types.Compiler type Rep ActualCompiler = D1 ('MetaData "ActualCompiler" "Stack.Types.Compiler" "stack-2.9.3.1-3hX8yMPTlvN3ikzyN8XAu6" 'False) (C1 ('MetaCons "ACGhc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Version)) :+: C1 ('MetaCons "ACGhcGit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) |
data WhichCompiler Source #
Variety of compiler to use.
Constructors
Ghc |
Instances
Show WhichCompiler Source # | |
Defined in Stack.Types.Compiler Methods showsPrec :: Int -> WhichCompiler -> ShowS show :: WhichCompiler -> String # showList :: [WhichCompiler] -> ShowS | |
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 # |
newtype CompilerRepository Source #
Repository containing the compiler sources
Constructors
CompilerRepository Text |
Instances
FromJSON CompilerRepository Source # | |
Defined in Stack.Types.Compiler Methods parseJSON :: Value -> Parser CompilerRepository parseJSONList :: Value -> Parser [CompilerRepository] | |
Show CompilerRepository Source # | |
Defined in Stack.Types.Compiler Methods 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.
Constructors
GhcjsNotSupported | |
PantryException PantryException |
Instances
Exception CompilerException Source # | |
Defined in Stack.Types.Compiler Methods toException :: CompilerException -> SomeException # | |
Show CompilerException Source # | |
Defined in Stack.Types.Compiler Methods showsPrec :: Int -> CompilerException -> ShowS show :: CompilerException -> String # showList :: [CompilerException] -> ShowS |
isWantedCompiler :: VersionCheck -> WantedCompiler -> ActualCompiler -> Bool Source #