Safe Haskell | None |
---|---|
Language | Haskell2010 |
Determine whether a specific version of a Haskell package is bundled with into this particular version of the given compiler. This is done by getting the Provides field from the output of "apt-cache showpkg ghc" (run in the appropriate changeroot) and converting the debian package names back to Cabal package names. *That* is done using the debianNameMap of CabalInfo, which is built using the mapCabal, splitCabal, and remapCabal functions.
- builtIn :: CompilerFlavor -> FilePath -> [PackageIdentifier]
- aptCacheShowPkg :: FilePath -> BinPkgName -> Either SomeException String
- aptCacheProvides :: BinPkgName -> FilePath -> [PackageIdentifier]
- aptCacheDepends :: FilePath -> String -> String -> Either SomeException String
- aptCacheConflicts :: FilePath -> String -> DebianVersion -> [BinPkgName]
- aptVersions :: FilePath -> BinPkgName -> [DebianVersion]
- hcVersion :: FilePath -> CompilerFlavor -> Maybe Version
- parseVersion' :: String -> Maybe Version
- tests :: Test
Documentation
builtIn :: CompilerFlavor -> FilePath -> [PackageIdentifier] Source #
Find out what version, if any, of a cabal library is built into the newest version of haskell compiler hc in environment root. This is done by looking for .conf files beneath a package.conf.d directory and parsing the name. (Probably better to actually read the .conf file.)
Utilities
aptCacheProvides :: BinPkgName -> FilePath -> [PackageIdentifier] Source #
What built in libraries does this haskell compiler provide?
aptCacheDepends :: FilePath -> String -> String -> Either SomeException String Source #
aptCacheConflicts :: FilePath -> String -> DebianVersion -> [BinPkgName] Source #
aptVersions :: FilePath -> BinPkgName -> [DebianVersion] Source #