ghc-lib-parser-0.20190903: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

SysTools.BaseDir

Synopsis

Documentation

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

Expand occurrences of the $topdir interpolation in a string.

expandToolDir :: Maybe FilePath -> String -> String Source #

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

:: FilePath

topdir

-> IO (Maybe FilePath)