patch applied (cabal-install): Add a LocalRepo kind of Repo and refactor the Fetch code