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

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 p returns the version of package p in the package database

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