
Done! SImon | -----Original Message----- | From: Ashley Yakeley [mailto:ashley@semantic.org] | Sent: 14 November 2002 02:25 | To: GHC List | Subject: -Werror Request | | If it's not too much work, I'd like to request a "-Werror" option for GHC | that would turn warnings into errors. Sometimes warnings one would like | to catch get lost in a long make process. | | Thanks... | | -- | Ashley Yakeley, Seattle WA | | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

GHC's excellent warnings are very helpful. They would be somewhat more so if it were possible to suppress a warning about a specific bit of code. One possible syntax (to which I gave no commitment) would be {-# WOFF "non-exhaustive pattern matches" #-} <offending code> {-# WON "non-exhaustive pattern matches" #-} . Another would be {-# WOFF 523 #-} <offending code> {-# WON 523 #-} where 523 is a warning number emitted with the warning message. This would be particularly useful with the recently granted wish for -Werror. mike
participants (2)
-
Mike Gunter
-
Simon Peyton-Jones