#3820: Pragma for suppressing 'orphan instance' warnings per instance
---------------------------------+------------------------------------------
    Reporter:  guest             |       Owner:                         
        Type:  feature request   |      Status:  new                    
    Priority:  normal            |   Component:  Compiler (Type checker)
     Version:  6.12.1            |    Keywords:                         
          Os:  Unknown/Multiple  |    Testcase:                         
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown           
---------------------------------+------------------------------------------
 Additionally to #2515 I'd like to suppress orphan instances warnings
 individually. I do not always like to disable orphan instance warnings
 globally for a module, since some of the warnings may point to an instance
 that can actually be moved to a more appropriate module.

 Syntax could be
 {{{
 {-# NOWARN orphan #-}
 instance C T where
    ...
 }}}
 or simply
 {{{
 {-# NOWARN #-}
 instance C T where
    ...
 }}}

 (Before GHC-6.12 a general local NOWARN pragma could also help to minimize
 wrong warnings about unused imported modules. And sometimes I also like to
 disable 'unused identifier' warning for some top-level functions, that
 shall be type checked, but not exported, because their API is still not
 mature.)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3820>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to