From 2ea5eb5415341de3e5b0a92ffb9779207e2bfdaf Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 4 Oct 2015 15:27:32 +0200 Subject: wrappers to use ghc from stack --- dot/local/bin/ghc | 7 +++++++ dot/local/bin/ghci | 1 + dot/local/bin/runghc | 1 + 3 files changed, 9 insertions(+) create mode 100755 dot/local/bin/ghc create mode 120000 dot/local/bin/ghci create mode 120000 dot/local/bin/runghc diff --git a/dot/local/bin/ghc b/dot/local/bin/ghc new file mode 100755 index 0000000..36c3656 --- /dev/null +++ b/dot/local/bin/ghc @@ -0,0 +1,7 @@ +#!/bin/sh +prog=${0##*/} +case "$prog" in + ghc|runghc|ghci) exec stack --no-system-ghc $prog;; +esac +echo "Not a stack command: $prog" >&2 +exit -1 diff --git a/dot/local/bin/ghci b/dot/local/bin/ghci new file mode 120000 index 0000000..a064d26 --- /dev/null +++ b/dot/local/bin/ghci @@ -0,0 +1 @@ +ghc \ No newline at end of file diff --git a/dot/local/bin/runghc b/dot/local/bin/runghc new file mode 120000 index 0000000..a064d26 --- /dev/null +++ b/dot/local/bin/runghc @@ -0,0 +1 @@ +ghc \ No newline at end of file -- cgit v1.2.3