[Haskell-cafe] Cabal upload issue

Sam Martin sam.martin at geomerics.com
Thu Nov 12 12:37:16 EST 2009

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. :)


-----Original Message-----
From: haskell-cafe-bounces at haskell.org
[mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Neil Brown
Sent: 12 November 2009 14:36
To: Jeremy O'Donoghue
Cc: haskell-cafe at 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 >=, 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.


Haskell-Cafe mailing list
Haskell-Cafe at haskell.org

More information about the Haskell-Cafe mailing list