patch applied (cabal-install): Add a local path and type param to PackageLocation