lib/Tools/ghc
author wenzelm
Thu, 18 Oct 2018 12:35:32 +0200
changeset 69160 30c384e72749
parent 69158 1722cc56d22e
child 69265 bd215c56cd96
permissions -rwxr-xr-x
clarified errors;

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: invoke Glasgow Haskell Compiler within the Isabelle environment

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