Skip to content

Commit

Permalink
minor rename to make it more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang committed Jul 8, 2019
1 parent 897b4a9 commit 9eb3b26
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package cats

package data

abstract private[data] class VersionSpecificPackage
abstract private[data] class ScalaVersionSpecificPackage
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cats

package data

abstract private[data] class VersionSpecificPackage {
abstract private[data] class ScalaVersionSpecificPackage {
type NonEmptyLazyList[+A] = NonEmptyLazyList.Type[A]

type NonEmptyList[+A] = NonEmptyList.Type[A]
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cats
import kernel.compat.scalaVersionSpecific._
import compat.lazyList.toLazyList

package object data extends VersionSpecificPackage {
package object data extends ScalaVersionSpecificPackage {

type NonEmptyStream[A] = OneAnd[LazyList, A]
type ValidatedNel[+E, +A] = Validated[NonEmptyList[E], A]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package cats
package laws
package discipline

object VersionSpecific {
object ScalaVersionSpecific {
trait ArbitraryInstances
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cats.laws.discipline
import cats.data.NonEmptyLazyList
import org.scalacheck.{Arbitrary, Cogen}

object VersionSpecific {
object ScalaVersionSpecific {

trait ArbitraryInstances {

Expand Down
2 changes: 1 addition & 1 deletion laws/src/main/scala/cats/laws/discipline/arbitrary.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.scalacheck.Arbitrary.{arbitrary => getArbitrary}
* Arbitrary instances for cats.data
*/
@suppressUnusedImportWarningForScalaVersionSpecific
object arbitrary extends ArbitraryInstances0 with VersionSpecific.ArbitraryInstances {
object arbitrary extends ArbitraryInstances0 with ScalaVersionSpecific.ArbitraryInstances {

// this instance is not available in ScalaCheck 1.13.2.
// remove this once a newer version is available.
Expand Down

0 comments on commit 9eb3b26

Please sign in to comment.