| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Stack.Types.CompilerPaths
Synopsis
- data CompilerPaths = CompilerPaths {
- cpCompilerVersion :: !ActualCompiler
- cpArch :: !Arch
- cpBuild :: !CompilerBuild
- cpCompiler :: !(Path Abs File)
- cpPkg :: !GhcPkgExe
- cpInterpreter :: !(Path Abs File)
- cpHaddock :: !(Path Abs File)
- cpSandboxed :: !Bool
- cpCabalVersion :: !Version
- cpGlobalDB :: !(Path Abs Dir)
- cpGhcInfo :: !ByteString
- cpGlobalDump :: !(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 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