1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 04:41:47 +03:00
semantic/script/repl

10 lines
357 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 17:00:23 +03:00
cabal v2-exec env -- -u GHC_ENVIRONMENT ghci -ghci-script=.ghci.repl $(script/ghci-flags) -no-ignore-dot-ghci $@