Warning suppression pragmas

Эдгар Жаворонков edzhavoronkov at gmail.com
Mon Oct 19 22:16:46 UTC 2015


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 <eir at cis.upenn.edu>:

> 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
>
> Richard
>
> On Oct 19, 2015, at 5:22 PM, Эдгар Жаворонков <edzhavoronkov at gmail.com>
> 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
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20151020/5137057e/attachment.html>


More information about the ghc-devs mailing list