packages feed

ghc-check 0.5.0.2 → 0.5.0.3

raw patch · 3 files changed

+5/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ghc-check.cabal view
@@ -1,7 +1,7 @@ cabal-version:       1.20 build-type:          Simple name:                ghc-check-version:             0.5.0.2+version:             0.5.0.3 synopsis:            detect mismatches between compile-time and run-time versions of the ghc api description:         detect mismatches between compile-time and run-time versions of the ghc api bug-reports:         https://github.com/pepeiborra/ghc-check/issues
src/GHC/Check.hs view
@@ -35,13 +35,15 @@ import Data.Version (Version) import GHC (Ghc) import GHC.Check.Executable (getGhcVersion, guessExecutablePathFromLibdir)-import GHC.Check.PackageDb (fromVersionString, PackageVersion (..), getPackageVersion, version)+import GHC.Check.PackageDb (PackageVersion (..), getPackageVersion, version) import GHC.Check.Util (gcatchSafe, liftTyped) import Language.Haskell.TH (TExpQ, runIO) import System.Directory (doesDirectoryExist, doesFileExist)  #if USE_PACKAGE_ABIS import GHC (getSessionDynFlags, runGhc, setSessionDynFlags)+#else+import GHC.Check.PackageDb (fromVersionString) #endif  -- | Given a run-time libdir, checks the ghc installation and returns
src/GHC/Check/PackageDb.hs view
@@ -68,4 +68,4 @@ fromPackageConfig p = PackageVersion (MyVersion $ packageVersion p) (Just $ abiHash p)  fromVersionString :: HasCallStack => String -> PackageVersion-fromVersionString v = PackageVersion (MyVersion $ read v) Nothing+fromVersionString v = PackageVersion (read v) Nothing