lib/Tools/ghc
author wenzelm
Thu, 08 Nov 2018 15:52:10 +0100
changeset 69267 517655a528fe
parent 69265 bd215c56cd96
permissions -rwxr-xr-x
always insist in specified resolver/compiler version;

#!/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