#!/usr/bin/env sh
if [ -z "$CARP" ]
then
if [ -z "$NIX_CC" ]
stack build
else
cabal build
fi
command -v clang-format >/dev/null && clang-format -i core/*.h || true