Skip to content

Commit

Permalink
Fix build with GHC 7.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
grayjay committed Nov 15, 2015
1 parent f16cd08 commit ae1199e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Cabal/Distribution/PackageDescription/Configuration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ import Data.Char ( isAlphaNum )
import Data.Maybe ( mapMaybe, maybeToList )
import Data.Map ( Map, fromListWith, toList )
import qualified Data.Map as Map
import qualified Data.Map.Strict as StrictMap
import Data.Monoid as Mon

------------------------------------------------------------------------------
Expand Down Expand Up @@ -270,9 +269,9 @@ resolveWithFlags dom os arch impl constrs trees checkDeps =
mp m@(Right _) _ = m
mp _ m@(Right _) = m
mp (Left xs) (Left ys) =
let union = StrictMap.unionWith
(\x y -> simplifyVersionRange $ unionVersionRanges x y)
let union = Map.foldrWithKey (Map.insertWith' combine)
(unDepMapUnion xs) (unDepMapUnion ys)
combine x y = simplifyVersionRange $ unionVersionRanges x y
in union `seq` Left (DepMapUnion union)

-- `mzero'
Expand Down

0 comments on commit ae1199e

Please sign in to comment.