lib/scripts/ghc
author wenzelm
Mon, 10 Dec 2018 23:03:20 +0100
changeset 69444 c3c9440cbf9b
parent 69268 c1a27fce2076
child 69929 b979e3044d8e
permissions -rwxr-xr-x
more formal Haskell project setup, with dependencies on packages from "stackage";

#!/usr/bin/env bash
#
# Author: Makarius
#
# Invoke ghc via "stack".

if [ -d "$ISABELLE_STACK_ROOT" ]; then
  isabelle_stack ghc -- "$@"
else
  echo "Cannot execute ghc: missing Isabelle GHC setup" >&2
  exit 127
fi