[darcs-users] GHC 6.10 compatibility patches

Simon Marlow marlowsd at gmail.com
Mon Oct 20 13:46:37 UTC 2008

David Roundy wrote:
> On Fri, Oct 17, 2008 at 09:28:48AM -0700, J. Garrett Morris wrote:
>> Hello everyone,
>> In the process of testing the franchise build on Vista, I discovered
>> that GHC 6.10 complains about several warnings which stop the build
>> process because of -Werror.  They are: -fffi is deprecated, and unused
>> imports.  I've attached a patch which resolves these issues.  I don't
>> know when -XForeignFunctionInterface was introduced though, or how to
>> make the GHC flags dependent on GHC version, so this might be the
>> wrong idea.
> Note that you can run
> ./setup.hs configure --disable-Werror
> to compile in spite of warnings.  But I appreciate that you didn't do
> this (since we do want to fix the warnings)!

We don't recommend having -Werror turned on for release distributions, 
since it makes your build fragile to changes in future versions of GHC 
(having it turned on for development builds is fine and good practice, of 


More information about the darcs-users mailing list