Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fix type

  • Loading branch information...
commit 82f6a9fd0cff73afee2f4238351f10ac01f10858 1 parent 60a8def
Joni Freeman authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/json-scalaz/
4 core/json-scalaz/
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.