A retrospective law is one that is to take effect, in point of time, before it was passed. 2. Whenever a law of this kind impairs the obligation of contracts, it is void. 3 Dall. 391. But laws which only vary the remedies, divest no right, but merely cure a defect in proceedings otherwise fair, are valid.