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 April 2018 00:23
To: ghc-devs@h
> 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 simplifier to transform the par