[Haskell-cafe] Re: package maintainers: updating your packages to work with GHC 6.8.1

Simon Marlow simonmarhaskell at gmail.com
Mon Nov 5 06:49:54 EST 2007


Duncan Coutts wrote:

> flag splitBase
>   description: Choose the new smaller, split-up base package.
> library
>   if flag(splitBase)
>     build-depends: base >= 3, containers
>   else
>     build-depends: base < 3

This is also a good time to add upper bounds to dependencies, in accordance 
with the package versioning policy:

http://haskell.org/haskellwiki/Package_versioning_policy

For instance, with accurate dependencies the above would become

flag splitBase
   description: Choose the new smaller, split-up base package.
library
   if flag(splitBase)
     build-depends: base >= 3.0 && < 3.1, containers >= 0.1 && < 0.2
   else
     build-depends: base >= 2.0 && < 3.0

Cheers,
	Simon



More information about the Haskell-Cafe mailing list