Skip to content

Add strict (whnf) variants of data types #101

Open

Description

@arybczak

Since haskell/core-libraries-committee#341 was accepted, it would be nice to follow suit and add strict variant of data types to this package as well, i.e.

  1. Add Control.Concurrent.STM.TArray.Strict, Control.Concurrent.STM.TBQueue.Strict, Control.Concurrent.STM.TChan.Strict, Control.Concurrent.STM.TMVar.Strict, Control.Concurrent.STM.TQueue.Strict, Control.Concurrent.STM.TSem.Strict, Control.Concurrent.STM.TVar.Strict with newtype wrappers that make sure values are held in WHNF.
  2. Add Control.Concurrent.STM.Strict that re-exports these (mirroring what Control.Concurrent.STM does).

I could create strict-mutable-stm with these (package adjacent to strict-mutable-base), but I think it would be better for everyone in terms of UX to add them here, especially given that even this package had issues with forcing things properly to avoid space leaks: #2, #69.

If that sounds reasonable, I can submit a PR, but I need someone to tell me it will be merged in a timely fashion first.

Activity

  1. MangoIV commented on Sep 6, 2026

    @MangoIV
    Contributor

    Hi, I would be happy to review such a contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions