
Currently we have to build Cabal from scratch after every make clean. Ideally I should be able to skip this step by installing the correct versions of Cabal and cabal-install system-wide, but as far as I can see we currently doesn't support this. Any ideas on how to make this work? Thanks, Ömer

Installing stuff system-wide without doing ‘make install’ would break my expectations for how the build works. Also, how would one return to a pristine state if it was done that way? // Niklas
26 juni 2018 kl. 08:57 skrev Ömer Sinan Ağacan
: Currently we have to build Cabal from scratch after every make clean. Ideally I should be able to skip this step by installing the correct versions of Cabal and cabal-install system-wide, but as far as I can see we currently doesn't support this. Any ideas on how to make this work?
Thanks,
Ömer _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

We don't have to break anyone's workflow. We could introduce an ENV var or a flag for this.
Also, how would one return to a pristine state if it was done that way?
By unsetting the ENV var or not using the flag.
Ömer
Niklas Larsson
Installing stuff system-wide without doing ‘make install’ would break my expectations for how the build works. Also, how would one return to a pristine state if it was done that way?
// Niklas
26 juni 2018 kl. 08:57 skrev Ömer Sinan Ağacan
: Currently we have to build Cabal from scratch after every make clean. Ideally I should be able to skip this step by installing the correct versions of Cabal and cabal-install system-wide, but as far as I can see we currently doesn't support this. Any ideas on how to make this work?
Thanks,
Ömer _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Niklas Larsson
Installing stuff system-wide without doing ‘make install’ would break my expectations for how the build works. Also, how would one return to a pristine state if it was done that way?
Hmm, I was assuming it would be up to the user to ensure that a compatible Cabal is already registered in the user's package database. Regardless, as I said in my other message, it's not clear to me that this is something that we really want to introduce complexity to support. Cheers, - Ben

Ömer Sinan Ağacan
Currently we have to build Cabal from scratch after every make clean. Ideally I should be able to skip this step by installing the correct versions of Cabal and cabal-install system-wide, but as far as I can see we currently doesn't support this. Any ideas on how to make this work?
Indeed we currently don't support this since ghc-pkg uses the Cabal API which changes from release to release. I suspect you could hack Hadrian to make this work (assuming you guaranteed that the system Cabal is compatible with the in-tree version), but I'm not sure it's something that we really want to encourage users to do. Cheers, - Ben
participants (3)
-
Ben Gamari
-
Niklas Larsson
-
Ömer Sinan Ağacan