I can't turn-off conreate warning

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Baa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

I can't turn-off conreate warning

Baa
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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I can't turn-off conreate warning

Sylvain Henry-2
Hi,

Maybe with -Wno-orphans

https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using-warnings.html?#ghc-flag--Worphans

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
> [hidden email]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Baa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I can't turn-off conreate warning

Baa
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-warnings.html?#ghc-flag--Worphans
>
> 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
> > [hidden email]
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners 
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I can't turn-off conreate warning

Sylvain Henry-2
Quoting the manual:

 > To turn off any warning, simply give the corresponding -Wno-...
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-warnings.html?#ghc-flag--Worphans
>>
>> 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
>>> [hidden email]
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>> _______________________________________________
>> Beginners mailing list
>> [hidden email]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Loading...