[Haskell-cafe] Request: warn about language extensions that are not used

Peter Verswyvelen bugfact at gmail.com
Wed Mar 11 12:22:48 EDT 2009

Yes, exactly. Indeed I should have given an example, thanks for doing so, I
was too hasty being lazy :)
On Wed, Mar 11, 2009 at 5:16 PM, Creighton Hogg <wchogg at gmail.com> wrote:

> 2009/3/11 Peter Verswyvelen <bugfact at gmail.com>:
> > When I put
> > {-# OPTIONS_GHC -Wall -Werror #-}
> > in my source file, I don't get compiler (GHC) warnings about redundant
> > language extensions that I enabled.
> > It would be nice if the compiler gave warnings about this, since after
> > refactoring, some language extensions might not be needed anymore, and
> hence
> > should be removed since fewer language extensions mean more stable and
> > portable code no?
> > What do you think?
> So you mean something like if you put {-# LANGUAGE
> GeneralizedNewtypeDeriving #-} in a file, but never do newtype
> deriving, it would warn you?
> I have no idea how hard that'd be to implement, but that sounds kind
> of cool.  Useful for both refactoring and when you've inherited old
> code.
> Cheers,
> C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090311/8415cc13/attachment.htm

More information about the Haskell-Cafe mailing list