Highlight mappend invariant for DepError

Related: https://github.com/commercialhaskell/stack/issues/2078
This commit is contained in:
Simon Jakobi 2016-05-05 03:10:19 +02:00
parent 6f108a10a4
commit 63feb972ae

View file

@ -625,7 +625,7 @@ data DepError = DepError
instance Monoid DepError where
mempty = DepError Nothing Map.empty
mappend (DepError a x) (DepError b y) = DepError
(maybe a Just b)
(assert (a == b) a)
(Map.unionWith C.intersectVersionRanges x y)
-- | Given a bundle of packages (a list of @GenericPackageDescriptions@'s) to