| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Stack.Types.CompilerPaths
Synopsis
- data CompilerPaths = CompilerPaths {
- compilerVersion :: !ActualCompiler
- arch :: !Arch
- build :: !CompilerBuild
- compiler :: !(Path Abs File)
- pkg :: !GhcPkgExe
- interpreter :: !(Path Abs File)
- haddock :: !(Path Abs File)
- sandboxed :: !Bool
- cabalVersion :: !Version
- globalDB :: !(Path Abs Dir)
- ghcInfo :: !ByteString
- globalDump :: !(Map PackageName DumpPackage)
- newtype GhcPkgExe = GhcPkgExe (Path Abs File)
- class HasCompiler env where
- cabalVersionL :: HasCompiler env => SimpleGetter env Version
- compilerVersionL :: HasCompiler env => SimpleGetter env ActualCompiler
- cpWhich :: (MonadReader env m, HasCompiler env) => m WhichCompiler
- getCompilerPath :: HasCompiler env => RIO env (Path Abs File)
- getGhcPkgExe :: HasCompiler env => RIO env GhcPkgExe
Documentation
data CompilerPaths Source #
Paths on the filesystem for the compiler we're using
Constructors
| CompilerPaths | |
Fields
| |
Instances
| Show CompilerPaths Source # | |
Defined in Stack.Types.CompilerPaths Methods showsPrec :: Int -> CompilerPaths -> ShowS # show :: CompilerPaths -> String # showList :: [CompilerPaths] -> ShowS # | |
| HasCompiler CompilerPaths Source # | |
Defined in Stack.Types.CompilerPaths Methods compilerPathsL :: SimpleGetter CompilerPaths CompilerPaths Source # | |
Location of the ghc-pkg executable
class HasCompiler env where Source #
An environment which ensures that the given compiler is available on the PATH
Methods
Instances
| HasCompiler Ctx Source # | |
Defined in Stack.Types.Build.ConstructPlan Methods | |
| HasCompiler CompilerPaths Source # | |
Defined in Stack.Types.CompilerPaths Methods compilerPathsL :: SimpleGetter CompilerPaths CompilerPaths Source # | |
| HasCompiler EnvConfig Source # | |
Defined in Stack.Types.EnvConfig Methods compilerPathsL :: SimpleGetter EnvConfig CompilerPaths Source # | |
cabalVersionL :: HasCompiler env => SimpleGetter env Version Source #
compilerVersionL :: HasCompiler env => SimpleGetter env ActualCompiler Source #
cpWhich :: (MonadReader env m, HasCompiler env) => m WhichCompiler Source #
getCompilerPath :: HasCompiler env => RIO env (Path Abs File) Source #
Get the path for the given compiler ignoring any local binaries.
getGhcPkgExe :: HasCompiler env => RIO env GhcPkgExe Source #
Get the GhcPkgExe from a HasCompiler environment