This Spectrum thing purports to evaluate your specs at compile time though:
https://github.com/arohner/spectrum