#!/usr/bin/env bash ### ### typecheck a given target ### ### > typecheck.sh ### ### Runs the typechecker for the given target by building it with bild. ### This leverages bild's built-in typechecking without running tests. ### help() { sed -rn 's/^### ?//;T;p' "$0" } if [[ $# == 0 ]] || [[ "$1" == "-h" ]]; then help exit 1 fi target="$1" # Use bild to typecheck (bild runs mypy for Python, ghc for Haskell, etc.) # This is simpler than trying to set up the environment ourselves bild "$target"