rules_haskell
rules_haskell copied to clipboard
Persistent worker prototype for haskell_module
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.
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.
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.