--- a/lib/Tools/ghc Thu Oct 18 12:30:26 2018 +0200
+++ b/lib/Tools/ghc Thu Oct 18 12:35:32 2018 +0200
@@ -4,9 +4,9 @@
#
# DESCRIPTION: invoke Glasgow Haskell Compiler within the Isabelle environment
-if [ -d "$ISABELLE_STACK_ROOT" ]; then
+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
-
--- a/lib/Tools/ghci Thu Oct 18 12:30:26 2018 +0200
+++ b/lib/Tools/ghci Thu Oct 18 12:35:32 2018 +0200
@@ -4,8 +4,9 @@
#
# DESCRIPTION: invoke GHC interaction within the Isabelle environment
-if [ -d "$ISABELLE_STACK_ROOT" ]; then
+if [ -d "$ISABELLE_STACK_ROOT" -a -n "$ISABELLE_GHC" ]; then
isabelle_stack ghci "$@"
else
+ echo "Cannot execute ghci: missing Isabelle GHC setup" >&2
exit 127
fi