Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data VersionCheck
- makeGhcVersionChecker :: IO (Maybe FilePath) -> TExpQ (IO VersionCheck)
- checkGhcVersion :: Version -> IO VersionCheck
Documentation
data VersionCheck Source #
Instances
Eq VersionCheck Source # | |
Defined in GHC.Check (==) :: VersionCheck -> VersionCheck -> Bool # (/=) :: VersionCheck -> VersionCheck -> Bool # | |
Show VersionCheck Source # | |
Defined in GHC.Check showsPrec :: Int -> VersionCheck -> ShowS # show :: VersionCheck -> String # showList :: [VersionCheck] -> ShowS # |
makeGhcVersionChecker :: IO (Maybe FilePath) -> TExpQ (IO VersionCheck) Source #
makeGhcVersionChecker libdir
returns a computation to check the run-time
version of ghc against the compile-time version.
checkGhcVersion :: Version -> IO VersionCheck Source #
Checks if the run-time version of the ghc
package matches the given version.