flock-0.3.2: Wrapper for flock(2)
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Lock.FLock

Synopsis

Documentation

withLock :: (MonadIO m, MonadBaseControl IO m) => FilePath -> SharedExclusive -> Block -> m a -> m a Source #

If no file or directory exists at the given path, a file will be created first.

lock :: MonadIO m => FilePath -> SharedExclusive -> Block -> m Lock Source #

If no file or directory exists at the given path, a file will be created first.

unlock :: MonadIO m => Lock -> m () Source #

data Block Source #

Constructors

Block 
NoBlock