ghc-lib-0.20190523.1: The GHC API, decoupled from GHC versions

Safe HaskellNone



This is the driver for the 'ghc --backpack' mode, which is a reimplementation of the "package manager" bits of Backpack directly in GHC. The basic method of operation is to compile packages and then directly insert them into GHC's in memory database.

The compilation products of this mode aren't really suitable for Cabal, because GHC makes up component IDs for the things it builds and doesn't serialize out the database contents. But it's still handy for constructing tests.



doBackpack :: [FilePath] -> Ghc () Source #

Entry point to compile a Backpack file.