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

Safe HaskellNone
LanguageHaskell2010

GHC.Check.PackageDb

Description

Discover the GHC version via the package database. Requirements:

  • the package database must be compatible, which is usually not the case across major ghc versions.
  • the ghc package is registered, which is not always the case.
Synopsis

Documentation

getPackageVersion :: String -> Ghc (Maybe Version) Source #

getPackageVersion p returns the version of package p in the package database

getPackageVersionIO :: FilePath -> String -> IO (Maybe Version) Source #

getPackageVersionIO ghc-libdir p returns the version of package p in the default package database