#!/bin/bash warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes" exts="-XOverloadedStrings -XRecordWildCards" defs="-DBENCODE_AESON -DTHREAD_DEBUG" hide="-hide-package crypto-random -hide-package crypto-api -hide-package crypto-numbers -hide-package cryptohash -hide-package prettyclass" opts="-rtsopts -hisuf p_hi -osuf p_o -prof -fprof-auto -fprof-auto-exported" root=${0%/*} cd "$root" me=${0##*/} me=${me%.*} set -x ghc \ $opts \ $hide \ $exts \ $defs \ -hidir build/$me -odir build/$me \ -iPresence \ -iArchive \ -isrc \ build/b/Presence/monitortty.o \ $warn \ "$@"