Safe Haskell | Safe-Inferred |
---|---|
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" 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.
Synopsis
- builtIn :: CompilerFlavor -> IO [PackageIdentifier]
- aptCacheShowPkg :: BinPkgName -> IO (Memoized (Either SomeException String))
- aptCacheProvides :: BinPkgName -> IO (Memoized [PackageIdentifier])
- aptCacheDepends :: String -> String -> IO (Memoized (Either SomeException String))
- aptCacheConflicts :: String -> DebianVersion -> IO [BinPkgName]
- aptVersions :: BinPkgName -> IO [DebianVersion]
- hcVersion :: CompilerFlavor -> IO (Maybe Version)
- parseVersion' :: String -> Maybe Version
- tests :: Test
Documentation
builtIn :: CompilerFlavor -> IO [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
aptCacheShowPkg :: BinPkgName -> IO (Memoized (Either SomeException String)) Source #
aptCacheProvides :: BinPkgName -> IO (Memoized [PackageIdentifier]) Source #
What built in libraries does this haskell compiler provide?
aptCacheDepends :: String -> String -> IO (Memoized (Either SomeException String)) Source #
aptCacheConflicts :: String -> DebianVersion -> IO [BinPkgName] Source #
aptVersions :: BinPkgName -> IO [DebianVersion] Source #