lib/Tools/ghci
changeset 69160 30c384e72749
parent 69158 1722cc56d22e
child 69264 021ea2abf42d
--- 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