haskell / haskell/containers

Add a Data.Sequence.Strict

Open
#752 23 comments 0 reactions 0 assignees View on GitHub
feature-request Seq
Dominant language
Haskell
Stars
355
Forks
194
Avg merge
3d 4h
Merged PRs (30d)
4

Description

`Data.Sequence` is only strict in its length and not its values - analogous to how `Data.Map.Lazy` is strict in its keys but not its values.

This is causing a space leak in my program, and ghc-heap-view clearly shows unevaluated thunks within the `Seq` structure. The solution that is most friendly to users of `containers` such as myself, would be to provide a `Data.Sequence.Strict` that forces the values before storing them inside the container.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.