<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I wonder what is the easiest way to compile Haskell to supercombinators (top level functions) using GHC as a library.<br><br></div>Is it possible to use GHC simplifier to transform the parsed Haskell source to supercombinators? i.e. to do<br><ul><li>eta expansion</li><li>closure conversion</li><li>lambda lifting<br></li></ul>Or should it be written from scratch?<br></div><br>Is Core or STG suited better for this purpose?<br><br></div>Thanks,<br></div>Csaba<br></div>