mvar-lock: A trivial lock based on MVar

[ apache, concurrency, library ] [ Propose Tags ] [ Report a vulnerability ]

Using an MVar as a lock is a common pattern. This module just wraps that up into some functions with nice names that make the pattern explicit.


[Skip to Readme]

Modules

[Last Documentation]

  • Control
    • Concurrent
      • Control.Concurrent.MVarLock

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5
Change log changelog.md
Dependencies base (>=4.20 && <4.21), safe-exceptions (>=0.1.7 && <0.2) [details]
License Apache-2.0
Author Chris Martin <ch.martin@gmail.com>
Maintainer Chris Martin <ch.martin@gmail.com>
Uploaded by chris_martin at 2026-06-11T07:49:18Z
Category Concurrency
Home page https://codeberg.org/chris-martin/mvar-lock
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2246 total (34 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2026-06-11 [all 2 reports]

Readme for mvar-lock-0.1.0.5

[back to package description]

Using an MVar as a lock is a common pattern. This module just wraps that up into some functions with nice names that make the pattern explicit.