Skip to content

Commit a16d9e1

Browse files
author
Luka Jacobowitz
committed
Move newtype to its own file
1 parent cf586b3 commit a16d9e1

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package cats
2+
package data
3+
4+
trait Newtype2 { self =>
5+
private[data] type Base
6+
private[data] trait Tag extends Any
7+
private[cats] type Type[A, +B] <: Base with Tag
8+
}

core/src/main/scala/cats/data/NonEmptyMapImpl.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ import cats.{Always, Apply, Eval, Foldable, Functor, Later, NonEmptyTraverse, No
2323

2424
import scala.collection.immutable._
2525

26-
trait Newtype2 { self =>
27-
private[data] type Base
28-
private[data] trait Tag extends Any
29-
private[cats] type Type[A, +B] <: Base with Tag
30-
}
31-
32-
3326
private[data] object NonEmptyMapImpl extends NonEmptyMapInstances with Newtype2 {
3427

3528
private[cats] def create[K, A](m: SortedMap[K, A]): Type[K, A] =

0 commit comments

Comments
 (0)