Okay, I submitted it as a GHC feature request. Thanks for the feedback.<div><br><div class="gmail_quote">On Wed, Mar 11, 2009 at 5:16 PM, Creighton Hogg <span dir="ltr"><<a href="mailto:wchogg@gmail.com">wchogg@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2009/3/11 Peter Verswyvelen <<a href="mailto:bugfact@gmail.com">bugfact@gmail.com</a>>:<br>
<div><div></div><div class="h5">> When I put<br>
> {-# OPTIONS_GHC -Wall -Werror #-}<br>
> in my source file, I don't get compiler (GHC) warnings about redundant<br>
> language extensions that I enabled.<br>
> It would be nice if the compiler gave warnings about this, since after<br>
> refactoring, some language extensions might not be needed anymore, and hence<br>
> should be removed since fewer language extensions mean more stable and<br>
> portable code no?<br>
> What do you think?<br>
<br>
</div></div>So you mean something like if you put {-# LANGUAGE<br>
GeneralizedNewtypeDeriving #-} in a file, but never do newtype<br>
deriving, it would warn you?<br>
<br>
I have no idea how hard that'd be to implement, but that sounds kind<br>
of cool. Useful for both refactoring and when you've inherited old<br>
code.<br>
<br>
Cheers,<br>
<font color="#888888">C<br>
</font></blockquote></div><br></div>