-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use scalaVersionSpecific helpers in version-specific code
- Loading branch information
1 parent
67dc634
commit 40333b2
Showing
9 changed files
with
2 additions
and
24 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
core/src/main/scala-2.12-/cats/data/ScalaVersionSpecificPackage.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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
package cats | ||
package data | ||
|
||
import kernel.compat.scalaVersionSpecific._ | ||
|
||
abstract private[data] class ScalaVersionSpecificPackage { | ||
type NonEmptyStream[A] = OneAnd[Stream, A] | ||
|
||
def NonEmptyStream[A](head: A, tail: Stream[A] = Stream.empty): NonEmptyStream[A] = | ||
OneAnd(head, tail) | ||
|
||
@suppressUnusedImportWarningForScalaVersionSpecific | ||
def NonEmptyStream[A](head: A, tail: A*): NonEmptyStream[A] = | ||
OneAnd(head, tail.toStream) | ||
} |
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
2 changes: 0 additions & 2 deletions
2
kernel/src/main/scala-2.13+/cats/kernel/instances/LazyListInstances.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
2 changes: 0 additions & 2 deletions
2
kernel/src/main/scala-2.13+/cats/kernel/instances/StreamInstances.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