[Haskell-cafe] Re: cabal install HaXml installs wrong version unless I specify the version number

2008-11-24 Thread Duncan Coutts
On Mon, 2008-11-24 at 15:16 +0100, Thomas Hartman wrote: > I have run into another issue with cabal packaging, which seems > related to the issues discussed above. (see attached tar file for > complete example of failure scenario) > > If I have a cabal package that depends on two other packages >

Re: [Haskell-cafe] Re: cabal install HaXml installs wrong version unless I specify the version number

2008-11-16 Thread Stephan Friedrichs
Don Stewart wrote: > [...] > > Note that packages that depend on the 'experimental' versions of things > (in particular Haxml 1.19.* can't be packaged for Arch either, as we can > only install one version of the haskell-haxml package). In this case we definetely need haxml-1.19. IIRC we even comm

Re: [Haskell-cafe] Re: cabal install HaXml installs wrong version unless I specify the version number

2008-11-15 Thread Don Stewart
deduktionstheorem: > Thomas Hartman wrote: > > When I specify > > > > Build-Depends: base, parsec, HaXml >= 1.19.4 > > > > in xml-parsec.cabal > > > > it does install correctly. > > I just fixed xml-parsec.cabal and uploaded it on hackage: > http://hackage.haskell.org/cgi-bin/hackage-scripts/p

[Haskell-cafe] Re: cabal install HaXml installs wrong version unless I specify the version number

2008-11-15 Thread Duncan Coutts
On Sat, 2008-11-15 at 13:31 +0100, Thomas Hartman wrote: > This is all news to me, and un-googleable to boot: > > http://www.google.pl/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=cabal+referred-versions&spell=1 > > (no results) It finds something for me (with the right spelling of prefe

Re: [Haskell-cafe] Re: cabal install HaXml installs wrong version unless I specify the version number

2008-11-15 Thread Stephan Friedrichs
Thomas Hartman wrote: > When I specify > > Build-Depends: base, parsec, HaXml >= 1.19.4 > > in xml-parsec.cabal > > it does install correctly. I just fixed xml-parsec.cabal and uploaded it on hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xml-parsec-1.0.3 > > [...] > /

[Haskell-cafe] Re: cabal install HaXml installs wrong version unless I specify the version number

2008-11-15 Thread Thomas Hartman
This is all news to me, and un-googleable to boot: http://www.google.pl/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=cabal+referred-versions&spell=1 (no results) So yes, I think this referred-versions machinery should at least be made more transparent for situations when it does the wron

[Haskell-cafe] Re: cabal install HaXml installs wrong version unless I specify the version number

2008-11-15 Thread Duncan Coutts
On Sat, 2008-11-15 at 12:39 +0100, Thomas Hartman wrote: > When I specify > > Build-Depends: base, parsec, HaXml >= 1.19.4 > > in xml-parsec.cabal > > it does install correctly. Yes, saying what version it needs is a good thing. It's all guesses otherwise. > I guess what happens is that cabal

[Haskell-cafe] Re: cabal install HaXml installs wrong version unless I specify the version number

2008-11-15 Thread Thomas Hartman
When I specify Build-Depends: base, parsec, HaXml >= 1.19.4 in xml-parsec.cabal it does install correctly. I guess what happens is that cabal install takes the earliest version of a package registered to try to build. I guess that's a reasonable default. What seems unreasonable to me is that