lib/Tools/ghc
author wenzelm
Thu Nov 08 15:52:10 2018 +0100 (7 months ago)
changeset 69267 517655a528fe
parent 69265 bd215c56cd96
permissions -rwxr-xr-x
always insist in specified resolver/compiler version;
wenzelm@69151
     1
#!/usr/bin/env bash
wenzelm@69151
     2
#
wenzelm@69151
     3
# Author: Makarius
wenzelm@69151
     4
#
wenzelm@69151
     5
# DESCRIPTION: invoke Glasgow Haskell Compiler within the Isabelle environment
wenzelm@69151
     6
wenzelm@69160
     7
if [ -d "$ISABELLE_STACK_ROOT" -a -n "$ISABELLE_GHC" ]; then
wenzelm@69267
     8
  isabelle_stack ghc -- "$@"
wenzelm@69158
     9
else
wenzelm@69160
    10
  echo "Cannot execute ghc: missing Isabelle GHC setup" >&2
wenzelm@69158
    11
  exit 127
wenzelm@69158
    12
fi