[GHC] #12959: GHC doesn't warn about missing implementations for class methods beginning with an underscore
GHC
ghc-devs at haskell.org
Thu Dec 15 12:16:45 UTC 2016
#12959: GHC doesn't warn about missing implementations for class methods beginning
with an underscore
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner:
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2849
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
I don't think there was a deep reason. Currently `-Wunusused-binds`
doesn't warn about variables starting with an underscore, so the leading
underscore is a per-variable hint that you intend this to be unused and
should not warn.
So maybe I just naively extended it to the class-method case, which is
admittedly a bit different.
I have no objection to killing off this special case.
Simon
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12959#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list