Commit e4c36b9d authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Edward Z. Yang
Browse files

DependencyMap: Replace usage of Data.Map with Data.Map.Lazy

The former has been deprecated for quite some time.
parent 19c278fe
......@@ -12,7 +12,7 @@ import Distribution.Types.Dependency
import Distribution.Version
import Distribution.Package
import qualified Data.Map as Map
import qualified Data.Map.Lazy as Map
-- | A map of dependencies. Newtyped since the default monoid instance is not
-- appropriate. The monoid instance uses 'intersectVersionRanges'.
......@@ -43,8 +43,8 @@ constrainBy :: DependencyMap -- ^ Input map
-> DependencyMap
constrainBy left extra =
DependencyMap $
Map.foldWithKey tightenConstraint (unDependencyMap left)
(unDependencyMap extra)
Map.foldrWithKey tightenConstraint (unDependencyMap left)
(unDependencyMap extra)
where tightenConstraint n c l =
case Map.lookup n l of
Nothing -> l
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment