I'm using bazel and rules_haskell to build a Haskell project called inline-java [1]. The project allows to embed and execute java source code in Haskell modules.
Some of the rules in this project need to use both a Haskell and a Java compiler. So far we had been tweaking the Haskell toolchain to include the java compiler in the visible binaries. This approach, however, has stopped working for technical reasons [2].
Before I try to come up with another adhoc solution, I'd like to know if there is a preferred way to combine two toolchains, like the Java and the Haskell toolchains, so the binaries of both are visible when building.
Ideally, this toolchains could be specified per-rule-instance, so we don't need to expose the Java toolchain in places where it isn't needed.
Thanks,
Facundo
[1] https://github.com/tweag/inline-java
[2] https://github.com/tweag/rules_haskell/issues/713
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/752a1c95-0e1f-48d8-aa98-2235ba0867a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.