
#7169: Warning for incomplete record field label used as function
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: nakaji_dayo
Type: feature request | Status: closed
Priority: normal | Milestone: 8.4.1
Component: Compiler | Version: 7.7
Resolution: fixed | 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): Phab:D4083
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by AntC):
Replying to [comment:27 Ben Gamari
{{{ Warning on declaring a partial record selector. However, disable warn with field names that start with underscore.
}}}
Eek. I may be too late. Don't the lenses people use underscore prefix on record labels? So that TH can detect that and produce a lens name with the `_` stripped off? Then they're going to miss out on this warning of partiality. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/7169#comment:29 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler