| ghc-6.10.4: The GHC API | Contents | Index

DriverPipeline

Synopsis

oneShot :: GhcMonad m => HscEnv -> Phase -> [(String, Maybe Phase)] -> m ()
compileFile :: GhcMonad m => HscEnv -> Phase -> (FilePath, Maybe Phase) -> m FilePath
linkBinary :: DynFlags -> [FilePath] -> [PackageId] -> IO ()
preprocess :: GhcMonad m => HscEnv -> (FilePath, Maybe Phase) -> m (DynFlags, FilePath)
compile :: GhcMonad m => HscEnv -> ModSummary -> Int -> Int -> Maybe ModIface -> Maybe Linkable -> m HomeModInfo
compile' :: GhcMonad m => (Compiler' m (HscStatus, ModIface, ModDetails), Compiler' m (InteractiveStatus, ModIface, ModDetails), Compiler' m (HscStatus, ModIface, ModDetails)) -> HscEnv -> ModSummary -> Int -> Int -> Maybe ModIface -> Maybe Linkable -> m HomeModInfo
link :: GhcLink -> DynFlags -> Bool -> HomePackageTable -> IO SuccessFlag

Documentation
oneShot :: GhcMonad m => HscEnv -> Phase -> [(String, Maybe Phase)] -> m ()
compileFile :: GhcMonad m => HscEnv -> Phase -> (FilePath, Maybe Phase) -> m FilePath
linkBinary :: DynFlags -> [FilePath] -> [PackageId] -> IO ()
preprocess

:: GhcMonad m |
=> HscEnv |
-> (FilePath, Maybe Phase) | filename and starting phase
-> m (DynFlags, FilePath) |
Just preprocess a file, put the result in a temp. file (used by the compilation manager during the summary phase). We return the augmented DynFlags, because they contain the result of slurping in the OPTIONS pragmas

compile

:: GhcMonad m |
=> HscEnv |
-> ModSummary | summary for module being compiled
-> Int | module N ...
-> Int | ... of M
-> Maybe ModIface | old interface, if we have one
-> Maybe Linkable | old linkable, if we have one
-> m HomeModInfo | the complete HomeModInfo, if successful
Compile Compile a single module, under the control of the compilation manager. This is the interface between the compilation manager and the compiler proper (hsc), where we deal with tedious details like reading the OPTIONS pragma from the source file, and passing the output of hsc through the C compiler. NB. No old interface can also mean that the source has changed.

compile'

:: GhcMonad m |
=> (Compiler' m (HscStatus, ModIface, ModDetails), Compiler' m (InteractiveStatus, ModIface, ModDetails), Compiler' m (HscStatus, ModIface, ModDetails)) |
-> HscEnv |
-> ModSummary | summary for module being compiled
-> Int | module N ...
-> Int | ... of M
-> Maybe ModIface | old interface, if we have one
-> Maybe Linkable | old linkable, if we have one
-> m HomeModInfo | the complete HomeModInfo, if successful

link :: GhcLink -> DynFlags -> Bool -> HomePackageTable -> IO SuccessFlag
Produced by Haddock version 2.4.2