I can't turn-off conreate warning

Hello, Dear List! I want to turn-off concreate warning (but to have all other, and possible to treat them as errors). This warning is about orphans instances. I tried: -Wall -Werror -Wno-warn-orphans also -Wall -Werror -Wno-warn-warn-orphans But GHC does not understand this option. How to achieve this? -- Best regards, Paul

Hi, Maybe with -Wno-orphans https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using-warnin... Regards, Sylvain On 24/07/2017 13:58, Baa wrote:
Hello, Dear List!
I want to turn-off concreate warning (but to have all other, and possible to treat them as errors). This warning is about orphans instances. I tried:
-Wall -Werror -Wno-warn-orphans
also
-Wall -Werror -Wno-warn-warn-orphans
But GHC does not understand this option. How to achieve this?
-- Best regards, Paul _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

Ohh, pardon :) My error: seems that `-fno-warn-orphans` works. Not -W but -f :-)
Hi,
Maybe with -Wno-orphans
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using-warnin...
Regards, Sylvain
On 24/07/2017 13:58, Baa wrote:
Hello, Dear List!
I want to turn-off concreate warning (but to have all other, and possible to treat them as errors). This warning is about orphans instances. I tried:
-Wall -Werror -Wno-warn-orphans
also
-Wall -Werror -Wno-warn-warn-orphans
But GHC does not understand this option. How to achieve this?
-- Best regards, Paul _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

To turn off any warning, simply give the corresponding -Wno-...
Quoting the manual: option on the command line. For backwards compatibility with GHC versions prior to 8.0, all these warnings can still be controlled with -f(no-)warn-* instead of -W(no-)*. On 24/07/2017 14:24, Baa wrote:
Ohh, pardon :) My error: seems that `-fno-warn-orphans` works. Not -W but -f :-)
Hi,
Maybe with -Wno-orphans
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using-warnin...
Regards, Sylvain
On 24/07/2017 13:58, Baa wrote:
Hello, Dear List!
I want to turn-off concreate warning (but to have all other, and possible to treat them as errors). This warning is about orphans instances. I tried:
-Wall -Werror -Wno-warn-orphans
also
-Wall -Werror -Wno-warn-warn-orphans
But GHC does not understand this option. How to achieve this?
-- Best regards, Paul _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
participants (2)
-
Baa
-
Sylvain Henry