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
bdc7789
commit 60808a8
Showing
11 changed files
with
39 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
version=2.0.1 | ||
version=2.1.0 | ||
align.openParenCallSite = true | ||
align.openParenDefnSite = true | ||
maxColumn = 120 | ||
continuationIndent.defnSite = 2 | ||
assumeStandardLibraryStripMargin = true | ||
danglingParentheses = true | ||
rewrite.rules = [AvoidInfix, SortImports, RedundantBraces, RedundantParens, SortModifiers] | ||
docstrings = JavaDoc | ||
docstrings = JavaDoc |
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
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
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
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