lib/scripts/ghc
author wenzelm
Mon, 17 Oct 2022 20:18:05 +0200
changeset 76326 a39fa81929d4
parent 69949 a7a0115061ec
permissions -rwxr-xr-x
avoid spurious error messages, e.g. when scala is missing;

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

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