Skip to content

Commit

Permalink
Move newtype to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka Jacobowitz committed Feb 7, 2018
1 parent cf586b3 commit e764237
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions core/src/main/scala/cats/data/Newtype2.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package cats
package data

trait Newtype2 { self =>
private[data] type Base
private[data] trait Tag extends Any
private[cats] type Type[A, +B] <: Base with Tag
}
7 changes: 0 additions & 7 deletions core/src/main/scala/cats/data/NonEmptyMapImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ import cats.{Always, Apply, Eval, Foldable, Functor, Later, NonEmptyTraverse, No

import scala.collection.immutable._

trait Newtype2 { self =>
private[data] type Base
private[data] trait Tag extends Any
private[cats] type Type[A, +B] <: Base with Tag
}


private[data] object NonEmptyMapImpl extends NonEmptyMapInstances with Newtype2 {

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

0 comments on commit e764237

Please sign in to comment.