patch applied (cabal-install): Move common dependency resolver types into shared module