GHC.Check.Executable

ghc-check-0.5.0.8: detect mismatches between compile-time and run-time versions of the ghc api

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Check.Executable

Description

Discover the GHC version by querying the GHC executable

Synopsis

- getGhcVersion :: FilePath -> IO Version
- trim :: String -> String
- guessExecutablePathFromLibdir :: FilePath -> NonEmpty FilePath

# Documentation

getGhcVersion :: FilePath -> IO Version #

Takes a path to the GHC binary to query. Throws if anything goes wrong.

trim :: String -> String #

guessExecutablePathFromLibdir :: FilePath -> NonEmpty FilePath #

Returns a list of possible paths for the GHC executable