#!/usr/bin/env bash

set -e

[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en .stack-work.lock "$0" "$@" || :

stack build --fast --flag uniworx:-library-only --flag uniworx:dev

stack exec uniworx-wflint -- $@
