A simple Scala library for validation