summaryrefslogtreecommitdiff
path: root/ghc-shim.sh
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2022-07-16 23:00:09 +0200
committertomsmeding <tom.smeding@gmail.com>2022-07-16 23:00:09 +0200
commit35a8d735cf66ac3a8867247b3f1a734af2add2ab (patch)
tree48750d56028ad39338e5cc69524b5b3deeceefaa /ghc-shim.sh
Initial
Diffstat (limited to 'ghc-shim.sh')
-rwxr-xr-xghc-shim.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/ghc-shim.sh b/ghc-shim.sh
new file mode 100755
index 0000000..6885dc7
--- /dev/null
+++ b/ghc-shim.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+if [[ $# = 1 && $1 = --print-global-package-db ]]; then
+ echo /data/data/com.termux/files/home/ghc-boot-pkgdb
+else
+ #echo >/dev/tty "!! ghc $*"
+ ghc "$@"
+fi