haskell / haskell/haskell-language-server

Encourage space-leak correct value storage

Aperta
#749 1 commento 1 reazione 0 assegnatari Vedi su GitHub
component: ghcide performance type: enhancement
Lingua principale
Haskell
Stelle
3k
Fork
455
Merge medio
2g 19h
PR unite (30g)
11

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.