adventofcode-2021/prepare
2021-12-05 12:11:43 +01:00

13 lines
243 B
Bash
Executable File

#!/bin/sh
day="$1"
part="$2"
day="$(printf '%02d' "$day")"
if test -f "day${day}/part${part}.lua"; then
luajit -v >/dev/null
elif test -f "day${day}/part${part}.hs"; then
#stack build
stack ghc -- -O3 "day${day}/part${part}.hs" -o run
fi