more robust: avoid implicit setup (with default resolver);
authorwenzelm
Wed, 17 Oct 2018 22:41:59 +0200
changeset 69158 1722cc56d22e
parent 69157 22ae1d926f96
child 69159 7ff6284c0d84
more robust: avoid implicit setup (with default resolver);
lib/Tools/ghc
lib/Tools/ghci
--- a/lib/Tools/ghc	Wed Oct 17 22:36:51 2018 +0200
+++ b/lib/Tools/ghc	Wed Oct 17 22:41:59 2018 +0200
@@ -4,4 +4,9 @@
 #
 # DESCRIPTION: invoke Glasgow Haskell Compiler within the Isabelle environment
 
-isabelle_stack ghc -- "$@"
+if [ -d "$ISABELLE_STACK_ROOT" ]; then
+  isabelle_stack ghc -- "$@"
+else
+  exit 127
+fi
+
--- a/lib/Tools/ghci	Wed Oct 17 22:36:51 2018 +0200
+++ b/lib/Tools/ghci	Wed Oct 17 22:41:59 2018 +0200
@@ -4,4 +4,8 @@
 #
 # DESCRIPTION: invoke GHC interaction within the Isabelle environment
 
-isabelle_stack ghci "$@"
+if [ -d "$ISABELLE_STACK_ROOT" ]; then
+  isabelle_stack ghci "$@"
+else
+  exit 127
+fi