[Haskell-cafe] Compiler constraints in cabal

Reiner Pope reiner.pope at gmail.com
Sat Nov 6 02:52:47 EDT 2010

Ah, I hadn't thought of that. But doesn't the version of GHC change
much more often than the version of base does?


On 6 November 2010 03:49, Ozgur Akgun <ozgurakgun at gmail.com> wrote:
> 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

More information about the Haskell-Cafe mailing list