Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

scalaz snapshot

  • Loading branch information...
commit 236027d25f1aecb80f1635739d8f4897a67a8761 1 parent d86a38e
@tonymorris tonymorris authored
View
2  src/main/scala/com/ephox/argonaut/AsJsons.scala
@@ -7,4 +7,4 @@ trait AsJsons {
}
}
-object AsJson extends AsJsons
+object AsJson extends AsJsons
View
12 src/main/scala/com/ephox/argonaut/Json.scala
@@ -300,24 +300,24 @@ trait Jsons {
*/
val jObjectMap = (x: JsonObjectMap) => jObject(x.toList)
- import scalaz._, PLens._, CoStateT._
+ import scalaz._, PLens._, CostateT._
implicit def JsonJsonLike: JsonLike[Json] =
new JsonLike[Json] {
def jBoolL: Json @-? Boolean =
- PLens(_.fold(None, z => Some(coState(jjBool, z)), _ => None, _ => None, _ => None, _ => None))
+ PLens(_.fold(None, z => Some(costate(jjBool, z)), _ => None, _ => None, _ => None, _ => None))
def jNumberL: Json @-? JsonNumber =
- PLens(_.fold(None, _ => None, z => Some(coState(jjNumber, z)), _ => None, _ => None, _ => None))
+ PLens(_.fold(None, _ => None, z => Some(costate(jjNumber, z)), _ => None, _ => None, _ => None))
def jStringL: Json @-? JsonString =
- PLens(_.fold(None, _ => None, _ => None, z => Some(coState(jjString, z)), _ => None, _ => None))
+ PLens(_.fold(None, _ => None, _ => None, z => Some(costate(jjString, z)), _ => None, _ => None))
def jArrayL: Json @-? JsonArray =
- PLens(_.fold(None, _ => None, _ => None, _ => None, z => Some(coState(jjArray, z)), _ => None))
+ PLens(_.fold(None, _ => None, _ => None, _ => None, z => Some(costate(jjArray, z)), _ => None))
def jObjectL: Json @-? JsonObject =
- PLens(_.fold(None, _ => None, _ => None, _ => None, _ => None, z => Some(coState(jjObject, z))))
+ PLens(_.fold(None, _ => None, _ => None, _ => None, _ => None, z => Some(costate(jjObject, z))))
def jNull =
jjNull
View
12 src/main/scala/com/ephox/argonaut/PossibleJson.scala
@@ -538,24 +538,24 @@ trait PossibleJsons {
) = k.fold(jsonNull, jsonBool, jsonNumber, jsonString, jsonArray, jsonObject)
}
- import scalaz._, PLens._, CoStateT._
+ import scalaz._, PLens._, CostateT._
implicit def PossibleJsonJsonLike: JsonLike[PossibleJson] =
new JsonLike[PossibleJson] {
def jBoolL: PossibleJson @-? Boolean =
- PLens(_.bool map (coState(jBool, _)))
+ PLens(_.bool map (costate(jBool, _)))
def jNumberL: PossibleJson @-? JsonNumber =
- PLens(_.number map (coState(jNumber, _)))
+ PLens(_.number map (costate(jNumber, _)))
def jStringL: PossibleJson @-? JsonString =
- PLens(_.string map (coState(jString, _)))
+ PLens(_.string map (costate(jString, _)))
def jArrayL: PossibleJson @-? JsonArray =
- PLens(_.array map (coState(jArray, _)))
+ PLens(_.array map (costate(jArray, _)))
def jObjectL: PossibleJson @-? JsonObject =
- PLens(_.obj map (coState(jObject, _)))
+ PLens(_.obj map (costate(jObject, _)))
def jNull =
pJson(jjNull)
Please sign in to comment.
Something went wrong with that request. Please try again.