purs-tidy check "src"

if [ $? -ne 0 ]; then
  echo "purs tidy check failed. Please fix the issues before committing."
  exit 1
fi

