aboutsummaryrefslogtreecommitdiff
path: root/Git/Queue.hs
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbarenblat@gmail.com>2022-01-19 12:58:54 -0500
committerGravatar Benjamin Barenblat <bbarenblat@gmail.com>2022-01-19 13:31:02 -0500
commit44df82dcbf72d01d2bbb6c0afacff329ca749854 (patch)
tree2619d3890a9e7e532f0ad19fd5fb4e6579bd0db7 /Git/Queue.hs
parent0ded71e9a53b1482019aedaa194e913d3a021c8d (diff)
Eliminate Data.Map.insertWith'
containers-0.6 removed insertWith' in favor of the Data.Map.Strict API. Switch to the new API where appropriate.
Diffstat (limited to 'Git/Queue.hs')
-rw-r--r--Git/Queue.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Git/Queue.hs b/Git/Queue.hs
index ee1f83ca9..80d953803 100644
--- a/Git/Queue.hs
+++ b/Git/Queue.hs
@@ -1,6 +1,7 @@
{- git repository command queue
-
- Copyright 2010,2012 Joey Hess <id@joeyh.name>
+ - Copyright 2022 Benjamin Barenblat <bbarenblat@gmail.com>
-
- Licensed under the GNU GPL version 3 or higher.
-}
@@ -24,7 +25,7 @@ import Git
import Git.Command
import qualified Git.UpdateIndex
-import qualified Data.Map as M
+import qualified Data.Map.Strict as M
{- Queable actions that can be performed in a git repository. -}
data Action
@@ -117,7 +118,7 @@ updateQueue !action different sizeincrease q repo
, items = newitems
}
!newsize = size q' + sizeincrease
- !newitems = M.insertWith' combineNewOld (actionKey action) action (items q')
+ !newitems = M.insertWith combineNewOld (actionKey action) action (items q')
combineNewOld :: Action -> Action -> Action
combineNewOld (CommandAction _sc1 _ps1 fs1) (CommandAction sc2 ps2 fs2) =