Add flag to control number of missing patterns in warnings
authorDavid Luposchainsky <dluposchainsky@gmail.com>
Sun, 17 Apr 2016 12:41:33 +0000 (14:41 +0200)
committerBen Gamari <ben@smart-cactus.org>
Sun, 17 Apr 2016 12:42:15 +0000 (14:42 +0200)
commit7005b9f7b0f4db0c0401156557bd4988d0efd569
tree5972d7eba8f412e4b5626d80cf8819f7944f7841
parent07dc330736103eee4b94607ef488b3578155f82b
Add flag to control number of missing patterns in warnings

Non-exhaustive pattern warnings had their number of patterns to
show hardcoded in the past. This patch implements the TODO remark
that this should be made a command line flag.

    -fmax-uncovered-patterns=<n>

can now be used to influence the number of patterns to be shown.

Reviewers: hvr, austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2076
compiler/deSugar/Check.hs
compiler/main/DynFlags.hs
docs/users_guide/using-optimisation.rst
utils/mkUserGuidePart/Options/Optimizations.hs