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 bba1a5d commit aa29d79
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 8 additions & 0 deletions core/src/main/scala/cats/data/Newtype.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package cats
package data

trait Newtype { self =>
private[data] type Base
private[data] trait Tag extends Any
private[cats] type Type[A] <: Base with Tag
}
Empty file.
5 changes: 0 additions & 5 deletions core/src/main/scala/cats/data/NonEmptySet.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ import cats.{Always, Eq, Eval, Foldable, Later, Now, Reducible, SemigroupK, Show

import scala.collection.immutable._

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

private[data] object NonEmptySetImpl extends NonEmptySetInstances with Newtype {

Expand Down

0 comments on commit aa29d79

Please sign in to comment.