forked from typelevel/cats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backports typelevel#3133 to scala_2.11
* Adds scala version specific src directories * Backports PR typelevel#3133 to add scala 2.11 support * Brings scalafmt plugin and configs utd with master
- Loading branch information
1 parent
14b8557
commit a6e8629
Showing
6 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
core/src/main/scala-2.11/cats/data/ScalaVersionSpecificNonEmptyChainImpl.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package cats.data | ||
|
||
private[data] trait ScalaVersionSpecificNonEmptyChainImpl { | ||
def fromSeq[A](as: scala.collection.Seq[A]): Option[NonEmptyChain[A]] = | ||
if (as.nonEmpty) Option(NonEmptyChainImpl.create(Chain.fromSeq(as))) else None | ||
} |
6 changes: 6 additions & 0 deletions
6
core/src/main/scala-2.12/cats/data/ScalaVersionSpecificNonEmptyChainImpl.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package cats.data | ||
|
||
private[data] trait ScalaVersionSpecificNonEmptyChainImpl { | ||
def fromSeq[A](as: scala.collection.Seq[A]): Option[NonEmptyChain[A]] = | ||
if (as.nonEmpty) Option(NonEmptyChainImpl.create(Chain.fromSeq(as))) else None | ||
} |
3 changes: 3 additions & 0 deletions
3
core/src/main/scala-2.13+/cats/data/ScalaVersionSpecificNonEmptyChainImpl.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package cats.data | ||
|
||
private[data] trait ScalaVersionSpecificNonEmptyChainImpl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters