Andreas Herrmann

Results 248 comments of Andreas Herrmann

@iphydf Thank you for trying this out and reporting the issue. @smelc Thanks for looking into this. ### Regarding the issue GHC's bindist goes through a [`configure`](https://github.com/tweag/rules_haskell/blob/2c4c3567e1bef3528bb378dbfa98dd74546160e5/haskell/ghc_bindist.bzl#L250-L264) step that generates...

> > To fix this we need to track these dependencies. An easy way would be to simply always include the whole GHC distribution when a GHC binary is called....

This is related to https://github.com/tweag/rules_haskell/issues/878. > **Describe alternatives you've considered** > Ideally we would list Template Haskell dependencies separately, in a new attribute called compile_only_deps or similar.

Thanks for raising this issue. With Bazel all inputs and outputs have to be predeclared. In case of `haskell_cabal_library`, which `stack_snapshot` uses under the hood, we predeclare the library and...

> A macro would work there, and maybe it's also available as a flag to the toolchain? A macro seems like the best solution to define common flags. It's common...

A possible workaround is described in the upstream issue: https://github.com/tweag/rules_nixpkgs/issues/153. Defining a Python wrapper in Nix that always sets `PYTHONNOUSERSITE=nonempty` would be another possible workaround.

> @aherrmann Did you mean to link another issue? #153 is this issue. Oops, yes that must have been a clipboard failure. It's been a while, so I don't remember,...

We could add a [`build_setting`](https://bazel.build/rules/config#user-defined-build-settings) to control this. It's worth pointing out though that from Bazel's perspective switching the value of `-fdiagnostics-color=` will invalidate a previously cached build. So, e.g....

That approach in #1771 is really clever. IIUC it's essentially projecting out the minimal data that we want to take into account for cache invalidation and telling Bazel to ignore...

@GuillaumeGen Thanks for sharing this info! Reading the docs I see > In order to determine the second point, we look at the dependencies and usages fields of the old...