[Haskell-cafe] GHC Core / STG to supercombinators

Csaba Hruska csaba.hruska at gmail.com
Mon Apr 9 18:51:57 UTC 2018


Hello,

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?

Thanks,
Csaba
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180409/d2cf43fc/attachment.html>


More information about the Haskell-Cafe mailing list