Safe Haskell | None |
---|---|
Language | Haskell2010 |
Stack.Types.Compiler
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
Eq ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods (==) :: ActualCompiler -> ActualCompiler -> Bool # (/=) :: ActualCompiler -> ActualCompiler -> Bool # | |
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 :: (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 # | |
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 # | |
Show ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods showsPrec :: Int -> ActualCompiler -> ShowS show :: ActualCompiler -> String # showList :: [ActualCompiler] -> ShowS | |
Generic ActualCompiler Source # | |
Defined in Stack.Types.Compiler Associated Types type Rep ActualCompiler :: Type -> Type | |
ToJSON ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods toJSON :: ActualCompiler -> Value # toEncoding :: ActualCompiler -> Encoding # toJSONList :: [ActualCompiler] -> Value # toEncodingList :: [ActualCompiler] -> Encoding # | |
FromJSONKey ActualCompiler Source # | |
Defined in Stack.Types.Compiler | |
FromJSON ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods parseJSON :: Value -> Parser ActualCompiler # parseJSONList :: Value -> Parser [ActualCompiler] # | |
NFData ActualCompiler Source # | |
Defined in Stack.Types.Compiler Methods rnf :: ActualCompiler -> () # | |
Display ActualCompiler Source # | |
Defined in Stack.Types.Compiler | |
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 | |
type Rep ActualCompiler Source # | |
Defined in Stack.Types.Compiler type Rep ActualCompiler = D1 (MetaData "ActualCompiler" "Stack.Types.Compiler" "stack-2.1.3.1-GWHAWn0cOYw62KQweDXGFj" 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)) :+: C1 (MetaCons "ACGhcjs" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Version) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Version)))) |
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 |
newtype CompilerRepository Source #
Repository containing the compiler sources
Constructors
CompilerRepository Text |
Instances
Show CompilerRepository Source # | |
Defined in Stack.Types.Compiler Methods showsPrec :: Int -> CompilerRepository -> ShowS show :: CompilerRepository -> String # showList :: [CompilerRepository] -> ShowS | |
FromJSON CompilerRepository Source # | |
Defined in Stack.Types.Compiler Methods parseJSON :: Value -> Parser CompilerRepository # parseJSONList :: Value -> Parser [CompilerRepository] # |
isWantedCompiler :: VersionCheck -> WantedCompiler -> ActualCompiler -> Bool Source #