git-annex/Types/LockCache.hs
Joey Hess e505c03bcc
more RawFilePath conversion
nukeFile replaced with removeWhenExistsWith removeLink, which allows
using RawFilePath. Utility.Directory cannot use RawFilePath since setup
does not depend on posix.

This commit was sponsored by Graham Spencer on Patreon.
2020-10-29 10:50:29 -04:00

18 lines
365 B
Haskell

{- git-annex lock cache data types
-
- Copyright 2014 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU AGPL version 3 or higher.
-}
module Types.LockCache (
LockCache,
LockHandle
) where
import Utility.LockPool (LockHandle)
import qualified Data.Map as M
import System.FilePath.ByteString (RawFilePath)
type LockCache = M.Map RawFilePath LockHandle