kittens
kittens copied to clipboard
Automatic type class derivation for Cats
## About this PR 📦 Updates * [org.scala-native:nscplugin](https://github.com/scala-native/scala-native) * [org.scala-native:sbt-scala-native](https://github.com/scala-native/scala-native) from `0.4.17` to `0.5.1` 📜 [GitHub Release Notes](https://github.com/scala-native/scala-native/releases/tag/v0.5.1) - [Version Diff](https://github.com/scala-native/scala-native/compare/v0.4.17...v0.5.1) ## Usage ✅ **Please merge!** I'll automatically update this...
```scala "org.typelevel" %% "kittens" % "3.3.0" ``` ```scala import cats.derived._ case class MyString(value: String) extends AnyVal semiauto.monoid[MyString] ``` this snippet compiles successfully on Scala 2.13, but fails on Scala 3:...
I just discovered and fixed a bug in my codebase because this compiles: ```scala import cats.Monoid import cats.data.NonEmptyList case class Foo(ids: NonEmptyList[Int]) object Foo { implicit val monoid: Monoid[Foo] =...
In scala 2, the following is ok: ```scala import auto.semigroupK._ implicitly[SemigroupK[Lambda[x => List[Set[Option[x]]]]]] ``` but the following in scala 3 does not compile: ```scala import auto.semigroupK.given summon[SemigroupK[[x] =>> List[Set[Option[x]]]]] ```...
The following derivations are not stack-safe: - `Functor` - `Contravariant` This is because the shapeless 3 `ErasedXXXInstances#map` has mutual recursion between the `Product` and `Coproduct` instances when dealing with recursive...
For scala 3, we should hopefully be able to support additional derived instances of `Invariant` and `Covariant` for nested type constructors. Specifically: ``` (Invariant[F], Functor[G]) => Invariant[[x] =>> F[G[x]]] (Invariant[F],...
https://github.com/typelevel/kittens#sequence-examples do we need to support this for scala 3 tuples?
## About this PR 📦 Updates * [org.scala-native:nscplugin](https://github.com/scala-native/scala-native) * [org.scala-native:sbt-scala-native](https://github.com/scala-native/scala-native) from `0.4.17` to `0.5.4` 📜 [GitHub Release Notes](https://github.com/scala-native/scala-native/releases/tag/v0.5.4) - [Version Diff](https://github.com/scala-native/scala-native/compare/v0.4.17...v0.5.4) ## Usage ✅ **Please merge!** I'll automatically update this...