Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
d360f343
Commit
d360f343
authored
Sep 02, 2020
by
MaxGabriel
Committed by
Marge Bot
Oct 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document -Wderiving-typeable
Tracking: #18641
parent
accdb24a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
docs/users_guide/expected-undocumented-flags.txt
docs/users_guide/expected-undocumented-flags.txt
+0
-1
docs/users_guide/using-warnings.rst
docs/users_guide/using-warnings.rst
+14
-0
No files found.
docs/users_guide/expected-undocumented-flags.txt
View file @
d360f343
...
...
@@ -4,7 +4,6 @@
--show-packages
-Onot
-Walternative-layout-rule-transitional
-Wderiving-typeable
-XAlternativeLayoutRule
-XAlternativeLayoutRuleTransitional
-XAutoDeriveTypeable
...
...
docs/users_guide/using-warnings.rst
View file @
d360f343
...
...
@@ -1881,6 +1881,20 @@ of ``-W(no-)*``.
Does nothing.
.. ghc-flag:: -Wderiving-typeable
:shortdesc: warn when Typeable is derived
:type: dynamic
:reverse: -Wno-deriving-typeable
:category:
:since: 7.10
This flag warns when ``Typeable`` is listed in a deriving clause
or derived with :extension:`StandaloneDeriving`.
Since GHC 7.10, ``Typeable`` is automatically derived for all types.
Thus, deriving ``Typeable`` yourself is redundant.
If you're feeling really paranoid, the :ghc-flag:`-dcore-lint` option is a good choice.
It turns on heavyweight intra-pass sanity-checking within GHC. (It checks GHC's
sanity, not yours.)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment