cabal-debian-4.31.4: Create a Debianization for a Cabal package

Safe HaskellNone




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 :: Map PackageName VersionSplits -> CompilerFlavor -> FilePath -> PackageName -> Maybe Version Source

Find out what version, if any, of a cabal library is built into the newest version of haskell compiler hc in environment root. For GHC this is done by looking at what virtual packages debian package provides. I have modified the ghcjs packaging to generate the required virtual packages in the Provides line. For other compilers it maybe be unimplemented.