haskell / haskell/array

Missing NFData instances for unboxed arrays

未关闭
#8 7 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Haskell
星标
17
派生
14
PR 合并指标
30 天内没有已合并 PR

描述

[NFData](https://hackage.haskell.org/package/deepseq-1.5.0.0/docs/Control-DeepSeq.html#g:1) instances for unboxed arrays (`UArray`, `STUArray`, `IOUArray`, `StorableArray`) are currently missing.

Ideally, they would be defined here, but we can't do that because `deepseq` (which defines `NFData`) depends on `array`.
However, `deepseq` has agreed to drop this dependency (see https://github.com/haskell/deepseq/issues/102), which makes this possible in the future.

For `array`, this would mean:

1. Wait for a new `deepseq` release which does not depend on `array`
2. Depend on `deepseq` and define the instances.

Does this sound ok to the maintainers here?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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