ghc-check-0.3.0.1: 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 
Failure String 
Instances
Eq VersionCheck Source # 
Instance details

Defined in GHC.Check

Show VersionCheck Source # 
Instance details

Defined in GHC.Check

makeGhcVersionChecker :: IO (Maybe FilePath) -> TExpQ (IO VersionCheck) Source #

makeGhcVersionChecker libdir returns a computation to check the run-time version of ghc against the compile-time version.

checkGhcVersion :: Version -> IO VersionCheck Source #

Checks if the run-time version of the ghc package matches the given version.