type-driven development is always fun!
Commit
a26cbd3
the part that still fascinates me is that a type can be a proof. if Approved (a status) can only be built by an approve() that takes a Submitted request, then holding an Approved is the evidence it went through approval. no need for runtime check, the compiler just enforces it.…