Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data PackageVersion
- version :: PackageVersion -> Version
- getPackageVersion :: String -> Ghc (Maybe PackageVersion)
Documentation
data PackageVersion Source #
Instances
Eq PackageVersion Source # | |
Defined in GHC.Check.PackageDb (==) :: PackageVersion -> PackageVersion -> Bool # (/=) :: PackageVersion -> PackageVersion -> Bool # | |
Show PackageVersion Source # | |
Defined in GHC.Check.PackageDb showsPrec :: Int -> PackageVersion -> ShowS # show :: PackageVersion -> String # showList :: [PackageVersion] -> ShowS # | |
Lift PackageVersion Source # | |
Defined in GHC.Check.PackageDb lift :: PackageVersion -> Q Exp # |
version :: PackageVersion -> Version Source #
getPackageVersion :: String -> Ghc (Maybe PackageVersion) Source #
getPackageVersion p
returns the version of package p
in the package database