stack-3.3.1: The Haskell Tool Stack
Safe HaskellNone
LanguageGHC2021

Stack.Types.CompilerPaths

Synopsis

Documentation

data CompilerPaths Source #

Paths on the filesystem for the compiler we're using

Constructors

CompilerPaths 

Fields

Instances

Instances details
Show CompilerPaths Source # 
Instance details

Defined in Stack.Types.CompilerPaths

Methods

showsPrec :: Int -> CompilerPaths -> ShowS #

show :: CompilerPaths -> String #

showList :: [CompilerPaths] -> ShowS #

HasCompiler CompilerPaths Source # 
Instance details

Defined in Stack.Types.CompilerPaths

newtype GhcPkgExe Source #

Location of the ghc-pkg executable

Constructors

GhcPkgExe (Path Abs File) 

Instances

Instances details
Show GhcPkgExe Source # 
Instance details

Defined in Stack.Types.CompilerPaths

Methods

showsPrec :: Int -> GhcPkgExe -> ShowS #

show :: GhcPkgExe -> String #

showList :: [GhcPkgExe] -> ShowS #

class HasCompiler env where Source #

An environment which ensures that the given compiler is available on the PATH

getCompilerPath :: HasCompiler env => RIO env (Path Abs File) Source #

Get the path for the given compiler ignoring any local binaries.

https://github.com/commercialhaskell/stack/issues/1052

getGhcPkgExe :: HasCompiler env => RIO env GhcPkgExe Source #

Get the GhcPkgExe from a HasCompiler environment