On Sun, Aug 30, 2009 at 12:28 AM, Ganesh Sittampalam<[email protected]> wrote:
> On Sat, 29 Aug 2009, Jason Dagit wrote:
>
>> Sat Aug 29 19:22:09 PDT 2009  Jason Dagit <[email protected]>
>>  * use gzipFormat instead of GZip to work around deprecation warning.
>
> This is because zlib is deprecating the constructors for abstraction
> reasons; this change is obviously correct and is something I'd been meaning
> to get around to myself.

Do we need to update anything in the .cabal file or add conditional
compilation for older versions of zlib?

>> Sat Aug 29 19:23:54 PDT 2009  Jason Dagit <[email protected]>
>>  * remove unused argument to readPrim
>
> Looks good, simple refactoring.
>
>> Sat Aug 29 19:24:37 PDT 2009  Jason Dagit <[email protected]>
>>  * minor clean up in TouchesFiles
>
> This one isn't correct because the old code compared two paths allowing for
> the '/' separator between elements, whereas the new code will make a change
> to 'foo' be thought of as touching 'food' and vice-versa - 'foo' should only
> match against 'foo/d' etc.

Good catch.  I had originally refactored it by adding a 'isSubPathOf',
and then later thought, "oh, that's just an isPrefixOf" without
thinking about the slashes.

>> Sat Aug 29 19:25:48 PDT 2009  Jason Dagit <[email protected]>
>>  * silence a warning that happens when compiling witnesses
>
> This is fine. I've also been meaning to suggest we should just drop
> OPTIONS_GHC from being used with -cpp/-XFoo, given that our minimum GHC is
> now 6.8 which should support all that.
>
>> Sat Aug 29 19:26:19 PDT 2009  Jason Dagit <[email protected]>
>>  * enable -Werror for now
>>  On the one had, shipping release code without treating warnings as
>>  errors makes a lot of pragmatic sense.  On the other hand, during
>>  development it would be nice if we notice and deal with warnings as
>>  soon as possible.  Therefore, I would like to reenable the treatment
>>  of warnings as errors until the next release.
>
> This is a policy decision and I'm not sure I agree with it, because of the
> variability between GHC 6.8, 6.10 and in the future GHC 6.12. But if we
> don't actually add -Werror we should all do better at cleaning up warnings
> we do notice.

Then maybe what we need is some conditional cabal logic so that the
test suite builds with -Werror.  Or there is a check for ghc 6.10.  I
just really don't like seeing warnings.

I'm attaching an amended version of the bad patch.  If you want to
apply some but not all of the patches that is fine.  For example if
you want to omit the -Werror patch that's okay with me.

Thanks for the review!

Jason

Attachment: use-gzipformat-instead-of-gzip-to-work-around-deprecation-warning_.dpatch
Description: Binary data

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to