~ fixed comment (just remembered that Validation is *not* actually a monad)
authorAlexandre Bertails <bertails@gmail.com>
Tue, 11 Oct 2011 22:15:09 -0400
changeset 51 e34ee305ffe3
parent 50 ae342bca35a3
child 57 f647f0335a35
child 61 938b40aaea88
~ fixed comment (just remembered that Validation is *not* actually a monad)
src/main/scala/plan.scala
--- a/src/main/scala/plan.scala	Tue Oct 11 22:09:02 2011 -0400
+++ b/src/main/scala/plan.scala	Tue Oct 11 22:15:09 2011 -0400
@@ -37,11 +37,11 @@
    *  type Intent [-A, -B] = PartialFunction[HttpRequest[A], ResponseFunction[B]]
    *  the corresponding syntax is: case ... => ...
    *  
-   *  this code makes use of the Validation monad. For example of how to use it, see
+   *  this code makes use of ScalaZ Validation. For example of how to use it, see
    *  http://scalaz.googlecode.com/svn/continuous/latest/browse.sxr/scalaz/example/ExampleValidation.scala.html
    *  
    *  the Resource abstraction returns Validation[Throwable, ?something]
-   *  we use the for monadic constructs.
+   *  we use the for monadic constructs (although it's *not* a monad).
    *  Everything construct are mapped to Validation[ResponseFunction, ResponseFuntion],
    *  the left value always denoting the failure. Hence, the rest of the for-construct
    *  is not evaluated, but let the reader of the code understand clearly what's happening.