mirror of https://github.com/sbt/sbt.git
Merge pull request #128 from eed3si9n/wip/jvalue_formats
Fixes ???, providing JValue pass-through
This commit is contained in:
commit
6bad6ae0dd
|
|
@ -2,7 +2,7 @@ import Dependencies._
|
|||
import Util._
|
||||
//import com.typesafe.tools.mima.core._, ProblemFilters._
|
||||
|
||||
def baseVersion = "1.0.0-SNAPSHOT"
|
||||
def baseVersion = "1.0.2-SNAPSHOT"
|
||||
def internalPath = file("internal")
|
||||
|
||||
def commonSettings: Seq[Setting[_]] = Seq(
|
||||
|
|
|
|||
|
|
@ -42,8 +42,13 @@ trait JValueFormats { self: sjsonnew.BasicJsonProtocol =>
|
|||
}
|
||||
}
|
||||
|
||||
// This passes through JValue, or returns JNull instead of blowing up with unimplemented.
|
||||
implicit lazy val JValueJsonReader: JR[JValue] = new JR[JValue] {
|
||||
def read[J](j: Option[J], u: Unbuilder[J]) = ??? // Is this even possible? with no Manifest[J]?
|
||||
def read[J](j: Option[J], u: Unbuilder[J]) = j match {
|
||||
case Some(x: JValue) => x
|
||||
case Some(x) => sys.error(s"Uknown AST $x")
|
||||
case _ => JNull
|
||||
}
|
||||
}
|
||||
|
||||
implicit lazy val JValueFormat: JF[JValue] =
|
||||
|
|
|
|||
Loading…
Reference in New Issue