lib/Tools/ghc_setup
author wenzelm
Mon, 28 Aug 2023 13:00:24 +0200
changeset 78623 b96b73a79da3
parent 69930 b5286c564861
permissions -rwxr-xr-x
more robust: "hostname" command might be absent, notably on Arch Linux (and other systemd-based distributions);

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: setup Glasgow Haskell Compiler via Stack

set -e

isabelle_stack setup
isabelle_stack ghc -- --version
echo -n "$(standard_path "$(isabelle_stack path --compiler-exe)")" > "$ISABELLE_STACK_ROOT/ISABELLE_GHC_EXE-$ISABELLE_PLATFORM_FAMILY"