summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKari Pahula <kaol@iki.fi>2019-09-20 10:11:53 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-09-23 17:54:42 -0400
commit238b58e436a24fcb76846f24b37c90b873ef2bef (patch)
treec883f0952fa176f1b8355e2ce20b7788b30b5de7 /docs
parentd0c2f3a2b6ec2d3ee2b9f017eb52c72cf6187d6f (diff)
downloadhaskell-238b58e436a24fcb76846f24b37c90b873ef2bef.tar.gz
Add -fkeep-going to make compiler continue despite errors (#15424)
Add a new optional failure handling for upsweep which continues the compilation on other modules if any of them has errors.
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/8.10.1-notes.rst3
-rw-r--r--docs/users_guide/using.rst12
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/users_guide/8.10.1-notes.rst b/docs/users_guide/8.10.1-notes.rst
index 8d70c7b34c..2ca9ce5c08 100644
--- a/docs/users_guide/8.10.1-notes.rst
+++ b/docs/users_guide/8.10.1-notes.rst
@@ -119,6 +119,9 @@ Compiler
the sample start event contains a timestamp of when the census occurred.
The retainer profiling events are emitted using the standard events.
+- Add new flag :ghc-flag:`-fkeep-going` which makes the compiler
+ continue as far as it can despite errors.
+
GHCi
~~~~
diff --git a/docs/users_guide/using.rst b/docs/users_guide/using.rst
index d1c453898f..8462a87cd8 100644
--- a/docs/users_guide/using.rst
+++ b/docs/users_guide/using.rst
@@ -1041,6 +1041,18 @@ messages and in GHCi:
start at zero. This choice was made to follow existing convention
(i.e. this is how Emacs does it).
+.. ghc-flag:: -fkeep-going
+ :shortdesc: Continue compilation as far as possible on errors
+ :type: dynamic
+ :category: verbosity
+
+ :since: 8.10.1
+
+ Causes GHC to continue the compilation if a module has an error.
+ Any reverse dependencies are pruned immediately and the whole
+ compilation is still flagged as an error. This option has no
+ effect if parallel compilation (:ghc-flag:`-j[⟨n⟩]`) is in use.
+
.. ghc-flag:: -freverse-errors
:shortdesc: Output errors in reverse order
:type: dynamic