ghc-9.4.1: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.SysTools.BaseDir

Synopsis

Documentation

expandTopDir :: FilePath -> String -> String Source #

Expand occurrences of the $topdir interpolation in a string.

expandToolDir Source #

Arguments

:: Bool

whether we are use the ambiant mingw toolchain

-> Maybe FilePath

tooldir

-> String 
-> String 

Expand occurrences of the $tooldir interpolation in a string on Windows, leave the string untouched otherwise.

findTopDir :: Maybe String -> IO String Source #

Returns a Unix-format path pointing to TopDir.

findToolDir Source #

Arguments

:: Bool

whether we are use the ambiant mingw toolchain

-> FilePath

topdir

-> IO (Maybe FilePath) 

tryFindTopDir Source #

Arguments

:: Maybe String

Maybe TopDir path (without the '-B' prefix).

-> IO (Maybe String)

TopDir (in Unix format / separated)