Although it might be a pain in the arse to some degree, is there any
reason why 'base' is considered special? 

As an example, I've come across a fair number of libraries/apps that
(presumably) compile against a previous version of OpenGL, but not the
current latest. Given it's impossible to test any package against
libraries that don't yet exist, shouldn't the upper bound be required
for all package dependencies?

Just curious. :)

ta,
Sam

-----Original Message-----
From: haskell-cafe-boun...@haskell.org
[mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Neil Brown
Sent: 12 November 2009 14:36
To: Jeremy O'Donoghue
Cc: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] Cabal upload issue

Jeremy O'Donoghue wrote:
> Hi all,
>
> I'm in the process of trying update the revisions of wx (part of
> wxHaskell) on hackage.
>
> I'm getting an error I find slightly surprising:
> ...
> Library
>     if flag(splitBase)
>         build-depends: base >= 3, wxcore >= 0.12.1.1, stm
>   
Change this last line to base >= 3 && < 5 to get rid of the warning.  I 
think the idea is that if base becomes version 5, it will likely break 
your code, so you should specify ahead of time that this library isn't 
currently designed to work with a version of base beyond 4.  That way 
when someone installs your package in the future and you haven't tested 
with base 5, cabal will know to use base 4 for your library.

Thanks,

Neil.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to