-Wall -Werror

Ashley Yakeley ashley at semantic.org
Tue Aug 12 01:12:32 EDT 2008

Duncan Coutts wrote:
>> $ head -1 time/Data/Time/Calendar/Gregorian.hs
>> {-# OPTIONS -Wall -Werror #-}
>> (in actual fact, we don't even build GHC/bootlibs with -Werror except
>> when validating).
> Ah, so that's the culprit.

I prefer this, actually, as we get to discover issues sooner rather than 
later. Though putting it in the .cabal file or wherever might be better.

It makes sense for Hackage to reject packages that use -Wall -Werror, 
but for that I use a Makefile that calls cabal passing them in.

Ashley Yakeley

More information about the Libraries mailing list