Suppress "Duplicate constraints" warning?

Is there a way to suppress GHC's "Duplicate constraints" warning? I'm auto-generating some code, and it's a lot more convenient for me to leave the duplicates than filter them out. -- Conal

On 12-12-30 02:55 PM, Conal Elliott wrote:
Is there a way to suppress GHC's "Duplicate constraints" warning? I'm auto-generating some code, and it's a lot more convenient for me to leave the duplicates than filter them out.
I second the question. In my case the code is neither generated nor contains any literal duplicate constraints, but I'm still getting the warning.

| I second the question. In my case the code is neither generated nor | contains any literal duplicate constraints, but I'm still getting the | warning. If you think there's a bug (a warning for something that isn't true), by all means submit a bug report. Simon

Hmm. Actually there isn't a flag to suppress it, I'm afraid. Would you like me to add one? (It would be easy to do.) Simon From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users-bounces@haskell.org] On Behalf Of Conal Elliott Sent: 30 December 2012 19:56 To: glasgow-haskell-users@haskell.org Subject: Suppress "Duplicate constraints" warning? Is there a way to suppress GHC's "Duplicate constraints" warning? I'm auto-generating some code, and it's a lot more convenient for me to leave the duplicates than filter them out. -- Conal

Yes, please do add a flag to suppress this duplicate constraints warning,
e.g., "-fno-warn-duplicate-constraints".
Thanks! -- Conal
On Mon, Dec 31, 2012 at 9:27 AM, Simon Peyton-Jones
Hmm. Actually there isn’t a flag to suppress it, I’m afraid. Would you like me to add one? (It would be easy to do.)****
Simon****
** **
*From:* glasgow-haskell-users-bounces@haskell.org [mailto: glasgow-haskell-users-bounces@haskell.org] *On Behalf Of *Conal Elliott *Sent:* 30 December 2012 19:56 *To:* glasgow-haskell-users@haskell.org *Subject:* Suppress "Duplicate constraints" warning?****
** **
Is there a way to suppress GHC's "Duplicate constraints" warning? I'm auto-generating some code, and it's a lot more convenient for me to leave the duplicates than filter them out.****
-- Conal****

Oh! I see it's already done. Thanks much!
On Thu, Jan 3, 2013 at 11:55 AM, Conal Elliott
Yes, please do add a flag to suppress this duplicate constraints warning, e.g., "-fno-warn-duplicate-constraints".
Thanks! -- Conal
On Mon, Dec 31, 2012 at 9:27 AM, Simon Peyton-Jones
wrote:
Hmm. Actually there isn’t a flag to suppress it, I’m afraid. Would you like me to add one? (It would be easy to do.)****
Simon****
** **
*From:* glasgow-haskell-users-bounces@haskell.org [mailto: glasgow-haskell-users-bounces@haskell.org] *On Behalf Of *Conal Elliott *Sent:* 30 December 2012 19:56 *To:* glasgow-haskell-users@haskell.org *Subject:* Suppress "Duplicate constraints" warning?****
** **
Is there a way to suppress GHC's "Duplicate constraints" warning? I'm auto-generating some code, and it's a lot more convenient for me to leave the duplicates than filter them out.****
-- Conal****
participants (3)
-
Conal Elliott
-
Mario Blažević
-
Simon Peyton-Jones