creswick / cabal-dev

A wrapper program around cabal and cabal-install that maintains sandboxed build environments.
BSD 3-Clause "New" or "Revised" License
150 stars 24 forks source link

wish cabal-dev to travel back in time #101

Open agocorona opened 11 years ago

agocorona commented 11 years ago

When compiling old developments, I wish cabal-dev to install and build dependencies that were available at a that time

motivation:

I´m installing now an old soft development. Since my dependencies were labeled with -any, neither I neither cabal know which library versions are the right ones. By taking into account a date parameter, cabal-dev can figure out which libraries were the latest and the right ones at that time.

isturdy commented 11 years ago

Taking a quick look at the cabal library, it does not seem that cabal tracks dates (they being inserted into the Hackage description on upload, while cabal only cares about the .cabal file. If this is true, this would require going back to Hackage to resolve dates or a somewhat major change to the way indexes are construced--does anyone know more about this?