ghc-check-0.4.0.0: 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 PackageVersion) Source #

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