@@ -0,0 +1,113 @@
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
14+SCRIPT_DIR=$(dirname $0)
16+STREAMLY_VERSION=0.8.1.1
17+BENCH_REPORT_DIR=benchmark/bench-report
18+source $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+#------------------------------------------------------------------------------
58+source $BENCH_REPORT_DIR/bin/build-lib.sh
63+#------------------------------------------------------------------------------
65+#------------------------------------------------------------------------------
67+# XXX Ideally run for all the valid flag combinations
68+CABAL_BUILD_OPTIONS=""
69+run_verbose $CABAL_EXECUTABLE repl $CABAL_BUILD_OPTIONS <<< :q
71+CABAL_BUILD_OPTIONS="--flag dev"
72+run_verbose $CABAL_EXECUTABLE repl $CABAL_BUILD_OPTIONS <<< :q
74+CABAL_BUILD_OPTIONS="--flag streamk"
75+run_verbose $CABAL_EXECUTABLE repl $CABAL_BUILD_OPTIONS <<< :q
77+CABAL_BUILD_OPTIONS="--flag use-c-malloc"
78+run_verbose $CABAL_EXECUTABLE repl $CABAL_BUILD_OPTIONS <<< :q
80+#------------------------------------------------------------------------------
82+#------------------------------------------------------------------------------
90+run_build_repl "bench" "$TARGETS"
96+run_build_repl "bench" "$TARGETS"
98+#------------------------------------------------------------------------------
100+#------------------------------------------------------------------------------
108+run_build_repl "test" "$TARGETS"
113+run_build_repl "test" "$TARGETS"