patch applied (cabal): Add a fold function for the VersionRange