summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
Diffstat (limited to 'g')
-rwxr-xr-xg25
1 files changed, 25 insertions, 0 deletions
diff --git a/g b/g
new file mode 100755
index 00000000..a48efef2
--- /dev/null
+++ b/g
@@ -0,0 +1,25 @@
1#!/bin/bash
2warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes"
3exts="-XOverloadedStrings -XRecordWildCards"
4defs="-DBENCODE_AESON -DTHREAD_DEBUG"
5hide="-hide-package crypto-random -hide-package crypto-api -hide-package crypto-numbers -hide-package cryptohash -hide-package prettyclass"
6
7root=${0%/*}
8cd "$root"
9
10me=${0##*/}
11me=${me%.*}
12ghc \
13 $hide \
14 $exts \
15 $defs \
16 -hidir build/$me -odir build/$me \
17 -iPresence \
18 -iArchive \
19 -isrc \
20 -icryptonite-backport \
21 build/b/Presence/monitortty.o \
22 build/b/cbits/cryptonite_salsa.o \
23 build/b/cbits/cryptonite_xsalsa.o\
24 $warn \
25 "$@"