Safe Haskell | None |
---|---|
Language | Haskell2010 |
Haskell Translation
- type CompileClosure = ([(ModSummary, ModGuts)], DynFlags, HscEnv)
- mkCompileClosure :: FilePath -> FilePath -> IO CompileClosure
- mkTargetBinds :: FilePath -> FilePath -> IO [Bind]
- mkIOString :: 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.
mkTargetBinds :: FilePath -> FilePath -> IO [Bind] Source #
Given the project directory and the source file path, compiles the
ModuleGraph
and translates it into a SSTG Bind
s.
mkIOString :: Outputable a => a -> IO String Source #
Make IO String from Outputable.