Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #129 from sbt/1.0.x
Browse files Browse the repository at this point in the history
Merge 1.0.x
  • Loading branch information
dwijnand authored Oct 2, 2017
2 parents be73dc0 + 6bad6ae commit f4eadfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
Expand Down

0 comments on commit f4eadfc

Please sign in to comment.