daml/compiler/damlc/daml-ide-core
Moritz Kiefer 10d7c2b5dc
Refactor mkConfFile (#5546)
mkConfFile was a bit of a mess before. Half of the arguments we passed
in via `PackageConfigFields` were unused as shown by the fact that we
set them to `error …` in various places where we did not have that
information. More importantly rather than passing in the unit ids
which need to end up in the GHC package config, we passed in file
names which required us to parse the DAR again and have a bunch of
hacks where file names with .dalf endings were not translated.

This PR changes this to only pass in the fields we need and pass in
dependencies directly as unit ids.

changelog_begin
changelog_end
2020-04-15 12:18:31 +02:00
..
src/Development/IDE/Core Refactor mkConfFile (#5546) 2020-04-15 12:18:31 +02:00
test/Development/IDE/Core/API Move GHC session to a Shake rule (#5517) 2020-04-09 17:11:40 +02:00
BUILD.bazel Move GHC session to a Shake rule (#5517) 2020-04-09 17:11:40 +02:00
dlint.yaml Disable tuple-section and lambda-case hints (#5229) 2020-03-27 17:16:25 +01:00