daml/.hie-bios

29 lines
1.2 KiB
Plaintext
Raw Normal View History

#!/bin/sh
cat "$HIE_BIOS_ARGS" | sed "s/'//g" | sed "s/-qg//g" | sed "s/+RTS.*-RTS//" | sed "s|/bazel-out|bazel-out|g" | sed "s/-fexternal-interpreter//g"
BAZEL_GENFILES="$(bazel info bazel-genfiles)"
# For now we hardcode include paths as Bazel passes the list of files explicitly
# and does not use include paths so we cannot get it from the GHCi invocation.
echo \
-i"${BAZEL_GENFILES}" \
-i"${BAZEL_GENFILES}"/compiler/scenario-service/protos \
-i"${BAZEL_GENFILES}"/daml-lf/archive \
-icompiler/damlc/lib \
-icompiler/daml-lf-ast/src \
-icompiler/daml-lf-proto/src \
-icompiler/daml-lf-reader/src \
-icompiler/daml-lf-tools/src \
-icompiler/hie-core/src \
-icompiler/scenario-service/client/src \
-idaml-assistant/ \
-idaml-assistant/daml-project-config \
-idaml-foundations/daml-ghc/daml-compiler/src \
-idaml-foundations/daml-ghc/damldoc/src \
-idaml-foundations/daml-ghc/ghc-compiler/src \
-idaml-foundations/daml-ghc/ghc-compiler/src \
-idaml-foundations/daml-ghc/ide/src \
-idaml-foundations/daml-ghc/language-server/src \
-ilibs-haskell/bazel-runfiles/src \
-ilibs-haskell/da-hs-base/src