haskell / haskell/haskell-language-server

Encourage space-leak correct value storage

未关闭
#749 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
component: ghcide performance type: enhancement
主要语言
Haskell
星标
3k
派生
455
平均合并
2 天 19 小时
30 天内合并 PR
11

描述

We've had a bunch of variables which ended up storing thunks - see haskell/ghcide#772 for merely the latest example. We should:

* Introduce safe wrappers around modifyVar_ and modifyMVar_ named modifyVar_' and modifyMVar_', which do an evaluate before storing.
* Switch all our code to using these wrappers.
* Use HLint to ban the lazy variants.

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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