Make worker-wrapper transformation optional.
I would like the worker-wrapper transformation to be optional, so I can disable it in my very specific use case. I propose to add a
-fworker-wrapper flag, which enables the worker-wrapper transformation, and is implied by
The expected users of this flag, which includes myself, are GHC API users. In my Haskell-to-Hardware compiler , which uses the GHC API, I have seen no benifits of the worker-wrapper transformation. It does however induce longer compilation times.
Further discussion can be seen here: https://mail.haskell.org/pipermail/ghc-devs/2015-October/010096.html