Skip to content

Encourage space-leak correct value storage #749

Open
@ndmitchell

Description

@ndmitchell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions