posix-filelock (hackage): System.Posix.IO has very low-level bindings to POSIX fcntl advisory locks.  This module wraps them in a cleaner API.
Keywords: library|system