Safe Haskell | None |
---|---|
Language | Haskell2010 |
Haskell Translation
- type CompileClosure = ([(ModSummary, ModGuts)], DynFlags, HscEnv)
- mkCompileClosure :: FilePath -> FilePath -> IO CompileClosure
- mkTargetBindss :: FilePath -> FilePath -> IO [Binds]
- mkIOStr :: Outputable a => a -> IO String
Documentation
type CompileClosure = ([(ModSummary, ModGuts)], DynFlags, HscEnv) Source #
Compilation closure type.
mkCompileClosure :: FilePath -> FilePath -> IO CompileClosure Source #
Captures a snapshot of the DynFlags
and HscEnv
in addition to the
ModGuts
in the ModuleGraph
. This allows compilation to be, in theory,
more portable across different applications, since ModGuts
is a crucial
intermediary for compilation in general.
mkTargetBindss :: FilePath -> FilePath -> IO [Binds] Source #
Given the project directory and the source file path, compiles the
ModuleGraph
and translates it into a SSTG Binds
s.