rules_haskell icon indicating copy to clipboard operation
rules_haskell copied to clipboard

Persistent worker prototype for haskell_module

Open facundominguez opened this issue 3 years ago • 2 comments
trafficstars

Not ready for general use. See the accompanying README for details.

This PR adds a multiplex persistent worker. The multiplex worker can be used as a singleplex worker too by changing the execution_requirements in haskell/toolchain.bzl.

facundominguez avatar Jun 08 '22 20:06 facundominguez

Do you think it would be worth it to ask the ghc people to eventually expose some of the things that are copied from ghc? I can also do the exposing myself in a MR to ghc, but I don't know which ones you need.

googleson78 avatar Jun 09 '22 13:06 googleson78

Do you think it would be worth it to ask the ghc people to eventually expose some of the things that are copied from ghc? I can also do the exposing myself in a MR to ghc, but I don't know which ones you need.

Eventually we will want to do this, yes. I would wait until we get the persistent worker in a more usable state before deciding which changes to the GHC API we need.

Also, some of the code in this persistent worker might end-up in GHC itself as it might be helpful to have a persistent worker to compile individual modules with hadrian as well.

facundominguez avatar Jun 09 '22 20:06 facundominguez