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

Safe HaskellNone
LanguageHaskell2010

GHC.Check

Synopsis

Documentation

data VersionCheck Source #

Constructors

Match 
Mismatch 
Instances
Eq VersionCheck Source # 
Instance details

Defined in GHC.Check

Show VersionCheck Source # 
Instance details

Defined in GHC.Check

checkGhcVersion :: Ghc VersionCheck Source #

Checks if the run-time version of the ghc package matches the compile-time version. To be able to specify a custom libdir, inline this logic in your program.

compileTimeVersion :: IO FilePath -> String -> TExpQ Version Source #

compileTimeVersion get-libdir p returns the version of package p in the compile-time package database.

ghcCompileTimeVersion :: Version Source #

Returns the compile-time version of the ghc package. Uses guessLibdir to find the GHC lib dir

runTimeVersion :: Ghc (Maybe Version) Source #

Returns the run-time version of the ghc package in the package database