
while trying to live with different versions of packages, I found cabal-install's behaviour strange because: you can "cabal install" a package without any complaint but the next "ghc-pkg list" is all red because of conflicts. and it's too late then - there's no way to get back. even if you re-install some package, it seems it is getting a different hashcode, so it's not recognized. if you were doing "cabal install --global" for some ghc package (e.g. old-locale), then ghc seems completely hosed and you've got to re-install the compiler. well that's not a big deal by itself but afterwards you have to re-install all packages ... so please please please have "cabal install" fail with some error message if (that is, before) the install would break anything. - J. $ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.1 $ cabal --version cabal-install version 0.8.0 using version 1.8.0.2 of the Cabal library

On 6 February 2010 01:05, Johannes Waldmann
so please please please have "cabal install" fail with some error message if (that is, before) the install would break anything. - J.
If you upgrade a library, it will break all other libraries that depend upon it. "ghc-pkg list" will tell you which libraries are broken and need to be rebuilt. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." - http://www.brainyquote.com/quotes/authors/j/joan_crawford.html

On 6 February 2010 19:23, Peter Robinson
I think you mean "ghc-pkg check".
Yes, I do. Whoops :s -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com Charles de Gaulle - "The better I get to know men, the more I find myself loving dogs." - http://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html

On Feb 6, 3:33 am, Ivan Miljenovic
On 6 February 2010 01:05, Johannes Waldmann
wrote: so please please please have "cabal install" fail with some error message if (that is, before) the install would break anything. - J.
If you upgrade a library, it will break all other libraries that depend upon it. "ghc-pkg list" will tell you which libraries are broken and need to be rebuilt.
Yes, I think that's the current behaviour what Johannes described yet he suggest this to be sub-optimal. A warning about breakage would be good before the breakage has happened.
-- Ivan Lazar Miljenovic Ivan.Miljeno...@gmail.com IvanMiljenovic.wordpress.com Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." -http://www.brainyquote.com/quotes/authors/j/joan_crawford.html _______________________________________________ Haskell-Cafe mailing list Haskell-C...@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe

On 7 February 2010 02:36, Johann Höchtl
Yes, I think that's the current behaviour what Johannes described yet he suggest this to be sub-optimal. A warning about breakage would be good before the breakage has happened.
As I said, almost any library upgrade will break packages; as far as I know this is one reason why "cabal upgrade" is disabled in newer versions of cabal-install (the main reason being that you shouldn't upgrade boot libraries). -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com Ted Turner - "Sports is like a war without the killing." - http://www.brainyquote.com/quotes/authors/t/ted_turner.html
participants (4)
-
Ivan Miljenovic
-
Johann Höchtl
-
Johannes Waldmann
-
Peter Robinson