Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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
CompilerPaths | |
|
Instances
Show CompilerPaths Source # | |
Defined in Stack.Types.CompilerPaths showsPrec :: Int -> CompilerPaths -> ShowS # show :: CompilerPaths -> String # showList :: [CompilerPaths] -> ShowS # | |
HasCompiler 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
Instances
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