diff options
author | Joey Hess <joeyh@joeyh.name> | 2020-10-29 10:33:12 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2020-10-29 10:50:29 -0400 |
commit | e505c03bccdc6567cd517a6ddaf70a411489473d (patch) | |
tree | 89d26695d129f649c4d9beba7d60dc4f6349525b /Types/LockCache.hs | |
parent | 8d66f7ba0fcb9cb7f06b1fea410e635daae2a73f (diff) |
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.
Diffstat (limited to 'Types/LockCache.hs')
-rw-r--r-- | Types/LockCache.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Types/LockCache.hs b/Types/LockCache.hs index 668d603b13..5b921be17d 100644 --- a/Types/LockCache.hs +++ b/Types/LockCache.hs @@ -10,7 +10,9 @@ module Types.LockCache ( LockHandle ) where -import qualified Data.Map as M import Utility.LockPool (LockHandle) -type LockCache = M.Map FilePath LockHandle +import qualified Data.Map as M +import System.FilePath.ByteString (RawFilePath) + +type LockCache = M.Map RawFilePath LockHandle |