mirror of
https://github.com/github/semantic.git
synced 2024-11-24 00:42:33 +03:00
14 lines
485 B
Bash
Executable File
14 lines
485 B
Bash
Executable File
#!/bin/bash
|
|
# 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.
|
|
|
|
set -e
|
|
|
|
cd $(dirname "$0")/..
|
|
|
|
repl_builddir=dist-repl
|
|
|
|
cabal v2-build --builddir="$repl_builddir" all --only-dependencies
|
|
|
|
cabal v2-exec --builddir="$repl_builddir" ghci -- -ghci-script=.ghci.semantic $(script/ghci-flags --builddir "$repl_builddir") -no-ignore-dot-ghci $@
|