<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 10 Apr 2018, at 9:23 am, Csaba Hruska <<a href="mailto:csaba.hruska@gmail.com" class="">csaba.hruska@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I'd like to use GHC as a haskell frontend in a project.<br class="">I wonder what is the easiest way to compile Haskell to supercombinators (top level functions) using GHC as a library.<br class=""><br class="">Is it possible to use the simplifier to transform the parsed Haskell source to supercombinators? i.e. to do</div></div></blockquote><br class=""></div><div>The Intel Haskell Research Compiler did something similar. </div><div><br class=""></div><div>See: </div><div><br class=""></div><div><a href="https://github.com/IntelLabs/flrc" class="">https://github.com/IntelLabs/flrc</a></div><div><a href="http://www.leafpetersen.com/leaf/publications/hs2013/hrc-paper.pdf" class="">http://www.leafpetersen.com/leaf/publications/hs2013/hrc-paper.pdf</a></div><div><br class=""></div><div><br class=""></div><div>Ben.</div><div><br class=""></div><div><br class=""></div><div><br class=""></div></body></html>