1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00
semantic/script/repl

12 lines
442 B
Plaintext
Raw Normal View History

2019-10-30 22:18:43 +03:00
#!/bin/bash
2019-10-30 23:08:42 +03:00
# Usage: script/repl [ARGS...]
# Run a repl session capable of loading all of the packages and their individual components. Any passed arguments, e.g. module names or flags, will be passed to ghci.
2019-10-30 22:18:43 +03:00
set -e
2019-12-18 17:00:13 +03:00
cd "$(dirname "$0")/.."
2019-10-30 22:18:43 +03:00
2019-12-18 01:43:31 +03:00
repl_builddir=dist-newstyle
2019-12-18 16:55:27 +03:00
cabal v2-exec --builddir="$repl_builddir" env -- -u GHC_ENVIRONMENT ghci -ghci-script=.ghci.repl $(script/ghci-flags --builddir "$repl_builddir") -no-ignore-dot-ghci $@