diff options
author | Gabor Greif <ggreif@gmail.com> | 2017-10-30 12:03:30 +0100 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2017-10-30 12:03:30 +0100 |
commit | 53700a9de48a3fb15015bd60462878fc9a2c0548 (patch) | |
tree | 5189a3682c3eb14ad03a27d64db25daef7c56109 /docs | |
parent | 15696682a4ac65c359101844c212fd4ae7357dc8 (diff) | |
download | haskell-53700a9de48a3fb15015bd60462878fc9a2c0548.tar.gz |
minor wordsmithing
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/using-warnings.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst index 216d7ee232..c6a86bbb71 100644 --- a/docs/users_guide/using-warnings.rst +++ b/docs/users_guide/using-warnings.rst @@ -1466,17 +1466,17 @@ of ``-W(no-)*``. ``other-modules``. .. ghc-flag:: -Wpartial-fields - :shortdesc: warn when define partial record field. + :shortdesc: warn when defining a partial record field. :type: dynamic :reverse: -Wno-partial-fields :category: :since: 8.4 - The option :ghc-flag:`-Wpartial-fields` warns about record field that could - fail when it is used as a function. The function ``f`` below will fail when - applied to Bar, so the compiler will emit a warning about this when - :ghc-flag:`-Wpartial-fields` is enabled. + The option :ghc-flag:`-Wpartial-fields` warns about record fields that could + fail when accessed via a lacking constructor. The function ``f`` below will + fail when applied to ``Bar``, so the compiler will emit a warning at its + definition when :ghc-flag:`-Wpartial-fields` is enabled. The warning is suppressed if the field name begins with an underscore. :: |