summaryrefslogtreecommitdiff
path: root/docs/backpack/algorithm.tex
diff options
context:
space:
mode:
authorRyanGlScott <ryan.gl.scott@gmail.com>2016-01-26 12:33:19 -0500
committerRyanGlScott <ryan.gl.scott@gmail.com>2016-01-26 12:33:33 -0500
commit6817703b31840620cca8596ca62ed70633934972 (patch)
treea3141c8727e1a7e09b97183baa69c9cbcb666828 /docs/backpack/algorithm.tex
parent6d2bdfd8d40b926d7a11d003213220022a63d9f5 (diff)
downloadhaskell-6817703b31840620cca8596ca62ed70633934972.tar.gz
Split off -Wunused-type-variables from -Wunused-matches
Summary: Previously, `-Wunused-matches` would fire whenever it detected unused type variables in a type family or data family instance. This can be annoying for users who wish to use type variable names as documentation, as being `-Wall`-compliant would mean that they'd have to prefix many of their type variable names with underscores, making the documentation harder to read. To avoid this, a new warning `-Wunused-type-variables` was created that only encompasses unused variables in family instances. `-Wunused-matches` reverts back to its role of only warning on unused term-level pattern names. Unlike `-Wunused-matches`, `-Wunused-type-variables` is not implied by `-Wall`. Fixes #11451. Test Plan: ./validate Reviewers: goldfire, ekmett, austin, hvr, simonpj, bgamari Reviewed By: simonpj, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1825 GHC Trac Issues: #11451
Diffstat (limited to 'docs/backpack/algorithm.tex')
0 files changed, 0 insertions, 0 deletions