Thanks Peter. I'd love to have this feature also. I go back every so often and try removing each of the extensions listed in my LANGUAGE pragma. Didn't occur to me that the compiler could be doing it for me. Regards, - Conal<br>
<br><div class="gmail_quote">2009/3/11 Peter Verswyvelen <span dir="ltr"><<a href="mailto:bugfact@gmail.com">bugfact@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Okay, I submitted it as a GHC feature request. Thanks for the feedback.<div><br><div class="gmail_quote"><div class="im">On Wed, Mar 11, 2009 at 5:16 PM, Creighton Hogg <span dir="ltr"><<a href="mailto:wchogg@gmail.com" target="_blank">wchogg@gmail.com</a>></span> wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2009/3/11 Peter Verswyvelen <<a href="mailto:bugfact@gmail.com" target="_blank">bugfact@gmail.com</a>>:<br>
<div><div></div><div>> 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></div><br></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br>