summaryrefslogtreecommitdiff
path: root/gi
blob: 907baf11d1baf0f1f539191835eb68140c61edd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes"
exts="-XOverloadedStrings -XRecordWildCards"
defs="-DXMPP -DBENCODE_AESON -DTHREAD_DEBUG"
hide="-hide-package crypto-random -hide-package crypto-api -hide-package crypto-numbers -hide-package cryptohash -hide-package prettyclass"

root=${0%/*}
cd "$root"

me=${0##*/}
me=${me%.*}
ghci -fobject-code                   \
    $hide                            \
    $exts                            \
    $defs                            \
    -hidir build/$me -odir build/$me \
    -iPresence                       \
    -iArchive                        \
    -isrc                            \
    build/b/Presence/monitortty.o    \
    build/b/cbits/cryptonite_salsa.o \
    build/b/cbits/cryptonite_xsalsa.o\
    $warn                            \
    "$@"