[GHC] #7169: Warning for incomplete record field label used as function

GHC ghc-devs at haskell.org
Thu Jun 22 04:35:35 UTC 2017


#7169: Warning for incomplete record field label used as function
-------------------------------------+-------------------------------------
        Reporter:  goldfire          |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.7
      Resolution:                    |             Keywords:  Warnings,
                                     |  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nakaji_dayo):

 Replying to [comment:19 RyanGlScott]:

 > We could include this warning under the scope of -Wincomplete-patterns,
 but I think it's best to keep these two things separate, since one might
 conceivably wish to disable partial record warnings while still having
 -Wincomplete-patterns on.

 I agree. I thought it is safety to separate it.


 > Yes. The underscore prefix is already an established convention for
 silencing other warnings.

 Thanks a lot. I learned.\\
 I agree. This rule seems even good in `partial record selector` case.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/7169#comment:20>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list