3# XXX Having a repl-ish option on packcheck can be very useful for quick type
4# checking. Running that in a loop in a smart way will work like ghcid.
6# The idea is to have an extremely light version of run-ci.sh
7# This can be very helpful on any refactoring change.
9# This script should be majorly improved but it solves my use case for the time
14SCRIPT_DIR=$(dirname $0)
17BENCH_REPORT_DIR=benchmark/bench-report
18source $SCRIPT_DIR/targets.sh
20#------------------------------------------------------------------------------
22#------------------------------------------------------------------------------
27 echo "Very dumb script."
28 echo "Currently runs everything in the repl and exits."
29 echo "Useful for type checking and displaying warnings."
34#------------------------------------------------------------------------------
36#------------------------------------------------------------------------------
46 CABAL_BUILD_OPTIONS=$(dev_build "--flag dev")
47 echo "|--------------------------------------------------------------------"
48 echo "|" $CABAL_EXECUTABLE repl "$prefix:$c" $CABAL_BUILD_OPTIONS <<< :q
49 echo "|--------------------------------------------------------------------"
50 run_verbose $CABAL_EXECUTABLE repl "$prefix:$c" $CABAL_BUILD_OPTIONS <<< :q
54#------------------------------------------------------------------------------
56#------------------------------------------------------------------------------
58source $BENCH_REPORT_DIR/bin/build-lib.sh
63#------------------------------------------------------------------------------
65#------------------------------------------------------------------------------
67# XXX Ideally run for all the valid flag combinations
69run_verbose $CABAL_EXECUTABLE repl $CABAL_BUILD_OPTIONS <<< :q
71CABAL_BUILD_OPTIONS="--flag dev"
72run_verbose $CABAL_EXECUTABLE repl $CABAL_BUILD_OPTIONS <<< :q
74CABAL_BUILD_OPTIONS="--flag streamk"
75run_verbose $CABAL_EXECUTABLE repl $CABAL_BUILD_OPTIONS <<< :q
77CABAL_BUILD_OPTIONS="--flag use-c-malloc"
78run_verbose $CABAL_EXECUTABLE repl $CABAL_BUILD_OPTIONS <<< :q
80#------------------------------------------------------------------------------
82#------------------------------------------------------------------------------
90run_build_repl "bench" "$TARGETS"
96run_build_repl "bench" "$TARGETS"
98#------------------------------------------------------------------------------
100#------------------------------------------------------------------------------
108run_build_repl "test" "$TARGETS"
113run_build_repl "test" "$TARGETS"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list