[Haskell-cafe] GHC Core / STG to supercombinators
astrohavoc at gmail.com
Mon Apr 9 19:11:27 UTC 2018
The transformations you described already exist as core simplifier passes.
For custom compilation, you may write your own pass using the core plugin
It's also possible to perform transformations on STG, but it takes extra
effort to retrieve/transform the in-memory STG representations, and type
safety is also not guaranteed.
On Tue, Apr 10, 2018 at 2:51 AM, Csaba Hruska <csaba.hruska at gmail.com>
> I wonder what is the easiest way to compile Haskell to supercombinators
> (top level functions) using GHC as a library.
> Is it possible to use GHC simplifier to transform the parsed Haskell
> source to supercombinators? i.e. to do
> - eta expansion
> - closure conversion
> - lambda lifting
> Or should it be written from scratch?
> Is Core or STG suited better for this purpose?
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe