11 lines
174 B
Bash
Executable File
11 lines
174 B
Bash
Executable File
#!/bin/sh
|
|
day="$1"
|
|
part="$2"
|
|
|
|
day="$(printf '%02d' "$day")"
|
|
|
|
if test -f "Day${day}/Part${part}.hs"; then
|
|
#stack build
|
|
stack ghc -- -O3 "Day${day}/Part${part}.hs" -o run
|
|
fi
|