What is $warning_names$?? From: ghc-devs [mailto:[email protected]] On Behalf Of ????? ?????????? Sent: 26 October 2015 14:53 To: Richard Eisenberg Cc: [email protected] Subject: Re: Warning suppression pragmas
Hello Richard! Can you take a look at some sort of specification i wrote week ago? I placed it here: https://ghc.haskell.org/trac/ghc/wiki/Design/LocalWarningPragmas I can imagine only two use cases, and i'm not sure about correcteness of it --- С уважением, Жаворонков Эдгар Best regards, Edgar A. Zhavoronkov 2015-10-20 1:44 GMT+03:00 Эдгар Жаворонков <[email protected]<mailto:[email protected]>>: Oh, okay, sure --- С уважением, Жаворонков Эдгар Yours sincerely, Zhavornkov Edgar 2015-10-20 1:37 GMT+03:00 Richard Eisenberg <[email protected]<mailto:[email protected]>>: Sure. But before thinking about implementation, let's think about specification. Write a wiki page (perhaps https://ghc.haskell.org/trac/ghc/wiki/Design/LocalWarningPragmas ) with the design of how the feature should work, with several examples. Once we know what we're building, then we can talk about how to build it. Thanks! Richard On Oct 19, 2015, at 6:21 PM, Эдгар Жаворонков <[email protected]<mailto:[email protected]>> wrote: Hello, Richard, Do you know something about defining own pragmas in GHC? --- С уважением, Жаворонков Эдгар 2015-10-20 1:17 GMT+03:00 Richard Eisenberg <[email protected]<mailto:[email protected]>>: Hi Edgar, No, that doesn't exist yet. Would surely be useful, though. Richard On Oct 19, 2015, at 6:16 PM, Эдгар Жаворонков <[email protected]<mailto:[email protected]>> wrote: No, i mean exactly pragmas in source code, that i can particulary add to function or a part of the code for example. E.g: {-# BEGIN_SUPPRESS_WARNINGS #-} foo :: a -> b #do something that throws warnings {-# END_SUPPRESS_WARNINGS #-} 2015-10-20 1:10 GMT+03:00 Richard Eisenberg <[email protected]<mailto:[email protected]>>: I just responded to #602, but perhaps you're just looking for the -fno-warn-XXX options listed here: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/flag-reference.html#idp14879296<https://na01.safelinks.protection.outlook.com/?url=https:%2f%2fdownloads.haskell.org%2f~ghc%2flatest%2fdocs%2fhtml%2fusers_guide%2fflag-reference.html%23idp14879296&data=01%7C01%7Csimonpj%40064d.mgd.microsoft.com%7C60e346caf8234d98e51008d2de151984%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=%2bBLz9NmZL6LVrVIlnfbLUUSiinyks0%2f5UV%2bzLK1%2biQI%3d> Richard On Oct 19, 2015, at 5:22 PM, Эдгар Жаворонков <[email protected]<mailto:[email protected]>> wrote: Hi everyone! Do you know, if there is pragma for warning suppression? I want to implement something like warning suppression related to this ticket in GHC's Trac (https://ghc.haskell.org/trac/ghc/ticket/602). Or i need to implement that kind of pragma by myself? Thanks in advance! Edgar _______________________________________________ ghc-devs mailing list [email protected]<mailto:[email protected]> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fmail.haskell.org%2fcgi-bin%2fmailman%2flistinfo%2fghc-devs&data=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7c60e346caf8234d98e51008d2de151984%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=Z93rLJn81zFj%2beOq9rX7219D58mmNDEA21HbPfMFAxs%3d>
_______________________________________________ ghc-devs mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
