[Scala 3] Derivation for deeply nested types
还没有人认领这个 Issue。
评估
调研方向
首先,将 Scala 3 的派生路径与使用 Shapeless's Split1 的 Scala 2 实现进行比较。复现 issue 中所示的嵌套 SemigroupK summon,并验证在不给 given 命名或显式调用 given 的情况下可以编译。
由索引模型根据 Issue 内容生成。
描述
In scala 2, the following is ok:
import auto.semigroupK._
implicitly[SemigroupK[Lambda[x => List[Set[Option[x]]]]]]
but the following in scala 3 does not compile:
import auto.semigroupK.given
summon[SemigroupK[[x] =>> List[Set[Option[x]]]]]
Naming and explicitly calling
given foo[F[_], G[_]](using F: Or[F]): DerivedSemigroupK[[x] =>> F[G[x]]] =
F.unify.compose[G]
foo[List, [x] =>> Set[Option[x]]]
does work however.
I see the scala 2 version uses Split1 from Shapeless. Maybe we need something similar here?
- 主要语言
- Scala
- 星标
- 545
- 派生
- 66
- 平均合并
- 1 小时 39 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
typelevel/kittens 的其他 Issue
-
Blocked/needs help Bug
难度 4/5 3-5 天 新手友好度 38/100
-
Feature
难度 5/5 一周以上 新手友好度 20/100
-
Feature
难度 5/5 一周以上 新手友好度 25/100
-
Feature
难度 4/5 3-5 天 新手友好度 30/100
-
[Scala 3] derived instances are not stack-safe可能已有人在做 @Arolg 于 137 天前认领。 未关闭Feature
难度 4/5 3-5 天 新手友好度 35/100
查看 typelevel/kittens 的全部 Issue
相似的 Issue
-
good first issue
难度 1/5 1 小时以内 新手友好度 78/100
promovolve/promovolve#358 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 95/100
svroonland/zio-kinesis#1431 ·
-
area:build priority:P2 status:backlog
难度 2/5 1-3 小时 新手友好度 85/100
KD5UJC-XYZ/scarab#648 ·
维护者通常 1 天内回复
-
Reading from a socket gets stuck on Node.js 26可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
lichess-org/lila#22324 · 3 条评论 ·
维护者通常 1 天内回复