ghc-tags-plugin-0.2.0.0: A compiler plugin which generates tags file from GHC parsed syntax tree.

Safe HaskellNone
LanguageHaskell2010

Plugin.GhcTags.FileLock

Synopsis

Documentation

withFileLock :: FilePath -> LockMode -> IOMode -> (Handle -> IO x) -> IO x Source #

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

data LockMode #

Indicates a mode in which a file should be locked.

Constructors

SharedLock 
ExclusiveLock