daml/bazel_tools/ghci-template.sh
Moritz Kiefer b748fab0f9
Fix running the IDE on damlc (#1956)
* Fix running the IDE on damlc

There were two issues:

1. Missing include paths.
2. Files where the module name does not match the file name.

I’ve fixed both and added a test that we can load the damlc Main.hs.
2019-07-01 17:30:13 +02:00

9 lines
238 B
Bash

#!/usr/bin/env bash
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
ENV_FILE=$1
ARGS_FILE=$2
echo "{ENV}" > "$ENV_FILE"
echo "{ARGS}" > "$ARGS_FILE"