Skip to content

Commit

Permalink
make NonEmptyMapImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
satorg committed Jun 11, 2022
1 parent 9d83ecc commit e9abf24
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/src/main/scala/cats/data/NonEmptyMapImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ import cats.kernel._

import scala.collection.immutable._

private[data] object NonEmptyMapImpl extends NonEmptyMapInstances with Newtype2 {
/**
* Actual implementation for [[cats.data.NonEmptyMap]]
*
* @note This object is kept public for the sake of binary compatibility only
* and therefore is subject to changes in future versions of Cats.
* Do not use directly - use [[cats.data.NonEmptyMap]] instead.
*/
object NonEmptyMapImpl extends NonEmptyMapInstances with Newtype2 {

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

0 comments on commit e9abf24

Please sign in to comment.