Simplifying Core using GHC API

Ranjit Jhala jhala at cs.ucsd.edu
Sat Jul 28 07:06:33 CEST 2012


ps: I should add I already know how to get from source to CoreExpr e.g. by:

       mod_guts <- coreModule `fmap` (desugarModuleWithLoc =<<
typecheckModule =<< parseModule modSummary)

Its the simplification, in particular, inlining steps that I'm after.
Thanks! Ranjit.

On Fri, Jul 27, 2012 at 10:04 PM, Ranjit Jhala <jhala at cs.ucsd.edu> wrote:

> Hi all,
>
> can anyone point me to the GHC API functions that I can use to trigger the
> various inlining simplifications? (i.e. to get the inlined CoreExprs that
> one
> gets with the -ddump-simpl flag?)
>
> Many thanks in advance!,
>
> Ranjit Jhala.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20120727/e52717e3/attachment.htm>


More information about the Glasgow-haskell-users mailing list