[Haskell-cafe] -Werror -Woverlapping-patterns -fglasgow-exts ?

David Feuer david.feuer at gmail.com
Thu Feb 23 05:14:18 UTC 2017

A tool to automatically select and add (almost) only the necessary
extensions to code that compiles successfully with -fglasgow-exts would be
quite nice to have, especially if it could run on a whole package. The
easiest thing would probably be to compile the module and then add
extensions included in -fglasgow-exts based on error messages, repeating
until the module compiles successfully. The included extension I'm familiar
with that seems hardest to handle is ScopedTypeVariables, as that can (in
some cases) change the meaning of code that compiles either way. So the
easiest thing would be to just include it unconditionally.

On Feb 22, 2017 7:08 PM, "Maciej Bielecki" <maciej.bielecki at prati.pl> wrote:

> On Tue, Feb 21, 2017 at 12:21:08PM -0500, David Feuer wrote:
> > A lot of us would like to get -Werror for only some errors. I don't
> > think it exists yet.
> It's implemented in GHC HEAD: https://ghc.haskell.org/trac/
> ghc/ticket/11219
> I'm not sure whether it supports flag deprecation warnings though.
> Maciej
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170223/a76a3261/attachment.html>

More information about the Haskell-Cafe mailing list