summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorCharles Cooper <cooper.charles.m@gmail.com>2017-03-13 15:17:58 -0400
committerBen Gamari <ben@smart-cactus.org>2017-03-13 15:18:09 -0400
commit70274b4f8003fde0fa3e4094a10dfae880579786 (patch)
treefeeed15edbf9fc0f05fc22c16d8a78f9326b9d6c /utils
parentc77b767098be53087e0b06ba23d613dd7c3bcf8e (diff)
downloadhaskell-70274b4f8003fde0fa3e4094a10dfae880579786.tar.gz
Add `-fmax-errors` flag
This commit adds a command line option to limit the number of errors displayed. It also moves the documentation for `reverse-errors` into the `Warnings` section. https://ghc.haskell.org/trac/ghc/ticket/13326 Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3323
Diffstat (limited to 'utils')
-rw-r--r--utils/mkUserGuidePart/Options/Misc.hs7
-rw-r--r--utils/mkUserGuidePart/Options/Warnings.hs13
2 files changed, 13 insertions, 7 deletions
diff --git a/utils/mkUserGuidePart/Options/Misc.hs b/utils/mkUserGuidePart/Options/Misc.hs
index 57e8808655..c542fa39d6 100644
--- a/utils/mkUserGuidePart/Options/Misc.hs
+++ b/utils/mkUserGuidePart/Options/Misc.hs
@@ -29,13 +29,6 @@ miscOptions =
"the main thread, rather than a forked thread."
, flagType = DynamicFlag
}
- , flag { flagName = "-freverse-errors"
- , flagDescription =
- "Display errors in GHC/GHCi sorted by reverse order of "++
- "source code line numbers."
- , flagType = DynamicFlag
- , flagReverse = "-fno-reverse-errors"
- }
, flag { flagName = "-flocal-ghci-history"
, flagDescription =
"Use current directory for the GHCi command history "++
diff --git a/utils/mkUserGuidePart/Options/Warnings.hs b/utils/mkUserGuidePart/Options/Warnings.hs
index f242fb062a..48ee32ce6c 100644
--- a/utils/mkUserGuidePart/Options/Warnings.hs
+++ b/utils/mkUserGuidePart/Options/Warnings.hs
@@ -90,6 +90,19 @@ warningsOptions =
, flagType = DynamicFlag
, flagReverse = "-fno-helpful-errors"
}
+ , flag { flagName = "-freverse-errors"
+ , flagDescription =
+ "Display errors in GHC/GHCi sorted by reverse order of "++
+ "source code line numbers."
+ , flagType = DynamicFlag
+ , flagReverse = "-fno-reverse-errors"
+ }
+ , flag { flagName = "-fmax-errors"
+ , flagDescription =
+ "Limit the number of errors displayed in GHC/GHCi."
+ , flagType = DynamicFlag
+ , flagReverse = "-fno-max-errors"
+ }
, flag { flagName = "-Wdeprecated-flags"
, flagDescription =
"warn about uses of commandline flags that are deprecated"