mvar-lock

A trivial lock based on MVar

https://github.com/chris-martin/mvar-lock

Latest on Hackage:0.1.0.4

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

Apache-2.0 licensed and maintained by Chris Martin

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.