ghc-tags-plugin-0.6.0.0: A compiler plugin which generates tags file from GHC parsed syntax tree.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Plugin.GhcTags.FileLock

Synopsis

Documentation

withFileLock Source #

Arguments

:: Bool

debug option

-> FilePath 
-> LockMode 
-> (FD -> IO x) 
-> IO x 

flock base lock (on posix) or LockFileEx on Windows.

data LockMode #

Indicates a mode in which a file should be locked.

Constructors

SharedLock 
ExclusiveLock