scalatra/scalatra — pull request #244 by stew (2012-12-27 18:48:51+00:00)
Title: change validation.fail.toOption to use a fold for compatibility with scalaz7

I'm attaching three changes which should allow a easy switch to scalaz7 sometime in the future.

One of the issues is that scalaz.Failure[A,B].fail has a very different meaning in scalaz 6 vs. scalaz 7. In scalaz 6 it produces a FailProjection, in scalaz 7 it produces a Failure[Failure[A,B],Nothing]. It was being used to produce something to call toOption. toOption has completely opposite meanings in the two different results.