From aa29d79793ddefc58ad56bfe912528d073690933 Mon Sep 17 00:00:00 2001 From: Luka Jacobowitz Date: Wed, 7 Feb 2018 13:00:05 +0100 Subject: [PATCH] Move newtype to its own file --- core/src/main/scala/cats/data/Newtype.scala | 8 ++++++++ core/src/main/scala/cats/data/Newtype2.scala | 0 core/src/main/scala/cats/data/NonEmptySet.scala | 5 ----- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 core/src/main/scala/cats/data/Newtype.scala create mode 100644 core/src/main/scala/cats/data/Newtype2.scala diff --git a/core/src/main/scala/cats/data/Newtype.scala b/core/src/main/scala/cats/data/Newtype.scala new file mode 100644 index 00000000000..8784ee01892 --- /dev/null +++ b/core/src/main/scala/cats/data/Newtype.scala @@ -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 +} \ No newline at end of file diff --git a/core/src/main/scala/cats/data/Newtype2.scala b/core/src/main/scala/cats/data/Newtype2.scala new file mode 100644 index 00000000000..e69de29bb2d diff --git a/core/src/main/scala/cats/data/NonEmptySet.scala b/core/src/main/scala/cats/data/NonEmptySet.scala index 2f12179d6b2..ed505dbecb0 100644 --- a/core/src/main/scala/cats/data/NonEmptySet.scala +++ b/core/src/main/scala/cats/data/NonEmptySet.scala @@ -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 {