haskell / haskell/haskell-language-server

Encourage space-leak correct value storage

Open
#749 1 comment 1 reaction 0 assignees View on GitHub
component: ghcide performance type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.