[GHC] #7169: Warning for incomplete record field label used as function
GHC
ghc-devs at haskell.org
Tue Oct 10 15:06:23 UTC 2017
#7169: Warning for incomplete record field label used as function
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: nakaji_dayo
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): Phab:D4083
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by nakaji_dayo):
Replying to [comment:22 mgsloan]:
I agree. I think "-Wpartial-fields" is good name.
I have submitted code review about `-Wpartial-fields`.\\
On the other hand, I don't have any commit about `-Wpartial-field-usages`.
> I think it also makes sense to have an option to emit warnings for
partial record fields. Perhaps call it -Wpartial-field-usages? The reason
this is helpful is that some libraries may export partial fields. It's
still helpful as a sanity check for users of a library to have this as an
optional warning.
I think that this is helpful in this case too.
But as far as I know, GHC doesn't have warnings for usage of partial
function.\\
In case of implement this, it seems that design considering the whole is
necessary.\\
Is my understanding correct?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/7169#comment:25>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list