Permalink
Browse files

Fix type

  • Loading branch information...
1 parent 60a8def commit 82f6a9fd0cff73afee2f4238351f10ac01f10858 Joni Freeman committed Mar 11, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/json-scalaz/README.md
@@ -4,10 +4,12 @@ Scalaz support for Lift JSON
This project adds a type class to parse JSON:
trait JSON[A] {
- def read(json: JValue): ValidationNEL[Error, A]
+ def read(json: JValue): Result[A]
def write(value: A): JValue
}
+ type Result[A] = ValidationNEL[Error, A]
+
Function 'read' returns an Applicative Functor, enabling parsing in an applicative style.
Simple example

0 comments on commit 82f6a9f

Please sign in to comment.