Cabal has a git repository
on github.com. Hackage has a
Note: the cabal-install package now lives in the same repository as the Cabal library package (older versions had separate repos).
git clone git://github.com/haskell/cabal.git
darcs get http://code.haskell.org/hackage-scripts/
darcs get http://code.haskell.org/hackage-server/