aboutsummaryrefslogtreecommitdiff
path: root/Logs/UUID.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Logs/UUID.hs')
-rw-r--r--Logs/UUID.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Logs/UUID.hs b/Logs/UUID.hs
index 8da727228..9984e2b76 100644
--- a/Logs/UUID.hs
+++ b/Logs/UUID.hs
@@ -9,6 +9,7 @@
- uuid.log stores a list of known uuids, and their descriptions.
-
- Copyright 2010-2012 Joey Hess <id@joeyh.name>
+ - Copyright 2022 Benjamin Barenblat <bbarenblat@gmail.com>
-
- Licensed under the GNU GPL version 3 or higher.
-}
@@ -29,7 +30,7 @@ import Logs
import Logs.UUIDBased
import qualified Annex.UUID
-import qualified Data.Map as M
+import qualified Data.Map.Strict as M
{- Records a description for a uuid in the log. -}
describeUUID :: UUID -> String -> Annex ()
@@ -79,7 +80,7 @@ uuidMapLoad :: Annex UUIDMap
uuidMapLoad = do
m <- (simpleMap . parseLog Just) <$> Annex.Branch.get uuidLog
u <- Annex.UUID.getUUID
- let m' = M.insertWith' preferold u "" m
+ let m' = M.insertWith preferold u "" m
Annex.changeState $ \s -> s { Annex.uuidmap = Just m' }
return m'
where