lib/scripts/ghc
author wenzelm
Wed, 20 Mar 2019 17:33:06 +0100
changeset 69924 512ac874bb9d
parent 69268 c1a27fce2076
child 69929 b979e3044d8e
permissions -rwxr-xr-x
more robust: allow empty root (e.g. via symlink);

#!/usr/bin/env bash
#
# Author: Makarius
#
# Invoke ghc via "stack".

if [ -d "$ISABELLE_STACK_ROOT" ]; then
  isabelle_stack ghc -- "$@"
else
  echo "Cannot execute ghc: missing Isabelle GHC setup" >&2
  exit 127
fi