diff --git a/cabal-install/Distribution/Client/Dependency/Modular/Dependency.hs b/cabal-install/Distribution/Client/Dependency/Modular/Dependency.hs index 89cb25441f9..a9d5cddb6cf 100644 --- a/cabal-install/Distribution/Client/Dependency/Modular/Dependency.hs +++ b/cabal-install/Distribution/Client/Dependency/Modular/Dependency.hs @@ -370,4 +370,4 @@ type VROrigin qpn = (VR, Goal qpn) -- | Helper function to collapse a list of version ranges with origins into -- a single, simplified, version range. collapse :: [VROrigin qpn] -> VR -collapse = simplifyVR . L.foldr (.&&.) anyVR . L.map fst +collapse = simplifyVR . L.foldr ((.&&.) . fst) anyVR