Skip to content

Commit

Permalink
Merge pull request #88 from adelbertc/scala210
Browse files Browse the repository at this point in the history
Cross-compile to Scala 2.10.x
  • Loading branch information
Alejandro Gómez authored Nov 15, 2016
2 parents 0bde7fe + b1dc713 commit 5115c8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ lazy val buildSettings = Seq(
homepage := Option(url("http://47deg.github.io/fetch/")),
organizationHomepage := Option(new URL("http://47deg.com")),
scalaVersion := "2.12.0",
crossScalaVersions := Seq("2.11.8", "2.12.0"),
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.0"),
headers := Map(
"scala" -> Apache2_0("2016", "47 Degrees, LLC. <http://www.47deg.com>")
)
Expand Down
5 changes: 2 additions & 3 deletions shared/src/main/scala/fetch.scala
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,11 @@ object `package` {
def run[M[_]]: FetchRunnerA[M] = new FetchRunnerA[M]
}

private[fetch] implicit class DataSourceCast[A, B](private val ds: DataSource[A, B])
extends AnyVal {
private[fetch] implicit class DataSourceCast[A, B](val ds: DataSource[A, B]) extends AnyVal {
def castDS[C, D]: DataSource[C, D] = ds.asInstanceOf[DataSource[C, D]]
}

private[fetch] implicit class NonEmptyListDetourList[A](private val nel: NonEmptyList[A])
private[fetch] implicit class NonEmptyListDetourList[A](val nel: NonEmptyList[A])
extends AnyVal {
def unsafeListOp[B](f: List[A] => List[B]): NonEmptyList[B] =
NonEmptyList.fromListUnsafe(f(nel.toList))
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.4.1-SNAPSHOT"
version in ThisBuild := "0.4.1-SNAPSHOT"

0 comments on commit 5115c8f

Please sign in to comment.