SysTools.BaseDir

ghc-8.6.3: The GHC API

Safe Haskell | None
Language | Haskell2010

SysTools.BaseDir

Synopsis

- expandTopDir :: FilePath -> String -> String
- expandToolDir :: Maybe FilePath -> String -> String
- findTopDir :: Maybe String -> IO String
- findToolDir :: FilePath -> IO (Maybe FilePath)

# Documentation

expandTopDir :: FilePath -> String -> String #

Expand occurrences of the `$topdir` interpolation in a string.

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

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

findTopDir :: Maybe String -> IO String #

Returns a Unix-format path pointing to TopDir.

findToolDir #

Arguments

:: FilePath | topdir
-> IO (Maybe FilePath) |