summaryrefslogtreecommitdiff
path: root/hadrian/ghci-cabal
blob: 7c0f968dc191a7a30ea3b1439fbbe3a869b2ef70 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env sh

set -e

TOOL_ARGS=$(TERM=dumb CABFLAGS=-v0 "hadrian/build-cabal" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci "$@" | dos2unix | paste -s -d ' ' - )
GHC_FLAGS="$GHC_FLAGS $TOOL_ARGS"
ghci $GHC_FLAGS "$@" -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs +RTS -A128m