summaryrefslogtreecommitdiff
path: root/g
blob: 5bcc6220c10d560a0f5bb94d052a87283c00abc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
args="-fwarn-unused-imports -O2"

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

me=${0##*/}
me=${me%.*}
ghc                                  \
    -hidir build/$me -odir build/$me \
    -iPresence                        \
    -iArchive                        \
    $args                            \
    "$@"