| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GHC.Check
Synopsis
Documentation
data VersionCheck Source #
Instances
| Eq VersionCheck Source # | |
Defined in GHC.Check | |
| Show VersionCheck Source # | |
Defined in GHC.Check Methods showsPrec :: Int -> VersionCheck -> ShowS # show :: VersionCheck -> String # showList :: [VersionCheck] -> ShowS # | |
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