RE: GHC Core / STG to supercombinators

2018-04-16 Thread Simon Peyton Jones via ghc-devs
The FloatOut pass is designed so that it can do lambda lifting for every lambda. I think if you try -ffloat-all-lams that might do it. See CoreMonad.FloatOutSwitches, the floatOutLambdas field Simon From: ghc-devs On Behalf Of Csaba Hruska Sent: 10

Re: GHC Core / STG to supercombinators

2018-04-10 Thread Ben Lippmeier
> On 10 Apr 2018, at 9:23 am, Csaba Hruska wrote: > > I'd like to use GHC as a haskell frontend in a project. > 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 the