#2515: Flag to suppress orphan instance warnings
------------------------------+---------------------------------------------
Reporter: tim | Owner:
Type: bug | Status: reopened
Priority: normal | Milestone:
Component: Documentation | Version: 6.8.3
Severity: trivial | Resolution:
Keywords: | Testcase:
Architecture: Unknown | Os: Unknown
------------------------------+---------------------------------------------
Changes (by tim):
* component: Compiler => Documentation
Comment:
Replying to [comment:4 duncan]:
> Replying to [comment:3 tim]:
> > I take it back: {{{-fno-warn-orphans}}} seems to be silently ignored
(if I pass it, I still see the orphan warning messages), so that should be
fixed too.
>
> Hmm, that's interesting, it works for me in 6.8.2, both when specified
on the ghc command line and in a pragma `{-# OPTIONS_GHC -fno-warn-orphans
#-}`.
I realized my problem -- I had an OPTIONS_GHC pragma in the module I was
compiling, which included {{{-Wall}}}, and was giving {{{-fno-warn-
orphans}}} on the command line, so {{{-Wall}}} was overriding {{{-fno-
warn-orphans}}}. I find this a little confusing, but I guess it must be
documented somewhere.
Anyway, my "...still a documentation problem" comment still applies.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2515#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs