[Scala 3] derived instances are not stack-safe

未关闭
#476 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@Arolg 已经在做这个了。

开始于 2026年6月16日。

  • #795 来自 @Arolg —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
scala
领域
tooling

调研方向

从 shapeless 3 的 ErasedXXXInstances#map 实现开始,重点关注其 Product 和 Coproduct 实例之间的相互递归。检查针对和类型的 Functor 和 Contravariant 递归派生;当这些派生不再导致栈溢出时即表示完成。

由索引模型根据 Issue 内容生成。

描述

Feature

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 sum types like List

主要语言
Scala
星标
545
派生
66
平均合并
1 小时 39 分钟
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

typelevel/kittens 的其他 Issue

查看 typelevel/kittens 的全部 Issue

相似的 Issue

更多 Scala Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。