[Haskell-cafe] Compiler constraints in cabal

Ozgur Akgun ozgurakgun at gmail.com
Fri Nov 5 12:49:29 EDT 2010


AFAIK, the way to do this is putting constraints on the base package.

On 5 November 2010 14:59, Reiner Pope <reiner.pope at gmail.com> wrote:

> Hi,
>
> I have a library, hmatrix-static, on Hackage. Version 0.3 (the current
> version) compiles with ghc-6.12.
>
> Let's say I want to upgrade my library using new features in ghc-7.0,
> and then release these upgrades as version 0.4. Is there any way to
> state in my cabal file that this new version will no longer compile
> under ghc-6.12? The reason I would like to state this is so that a
> user with ghc-6.12 can do 'cabal install hmatrix-static' (or do a
> cabal install of a program depending on hmatrix-static) and see that
> cabal will install version 0.3 rather than attempt to install version
> 0.4 and fail.
>
> Thanks for your help.
>
> Reiner
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
Ozgur Akgun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101105/787fab18/attachment.html


More information about the Haskell-Cafe mailing list