summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-10-27 19:18:02 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-01 12:48:35 -0400
commitb7a001132202e1ebf03dd21c6c7b4cd7a24df501 (patch)
treefd37ca58f67f2fd68dc7e145d30191c4c6ca1291 /compiler
parentedd175c9f9f2988e2836fc3bdc70d627f0f0c5cf (diff)
downloadhaskell-b7a001132202e1ebf03dd21c6c7b4cd7a24df501.tar.gz
Typo: rename -fwrite-if-simplfied-core to -fwrite-if-simplified-core
Diffstat (limited to 'compiler')
-rw-r--r--compiler/GHC/Driver/Main.hs6
-rw-r--r--compiler/GHC/Driver/Session.hs2
-rw-r--r--compiler/GHC/Unit/Module/WholeCoreBindings.hs4
3 files changed, 6 insertions, 6 deletions
diff --git a/compiler/GHC/Driver/Main.hs b/compiler/GHC/Driver/Main.hs
index c2e69a4087..0eb6f9e89c 100644
--- a/compiler/GHC/Driver/Main.hs
+++ b/compiler/GHC/Driver/Main.hs
@@ -867,7 +867,7 @@ hscRecompStatus
-- If missing object code, just say we need to recompile because of object code.
(_, OutOfDateItem reason _) -> OutOfDateItem reason Nothing
-- If just missing byte code, just use the object code
- -- so you should use -fprefer-byte-code with -fwrite-if-simplfied-core or you'll
+ -- so you should use -fprefer-byte-code with -fwrite-if-simplified-core or you'll
-- end up using bytecode on recompilation
(_, UpToDateItem {} ) -> just_o
@@ -876,7 +876,7 @@ hscRecompStatus
-- If missing object code, just say we need to recompile because of object code.
(_, OutOfDateItem reason _) -> OutOfDateItem reason Nothing
-- If just missing byte code, just use the object code
- -- so you should use -fprefer-byte-code with -fwrite-if-simplfied-core or you'll
+ -- so you should use -fprefer-byte-code with -fwrite-if-simplified-core or you'll
-- end up using bytecode on recompilation
(OutOfDateItem reason _, _ ) -> OutOfDateItem reason Nothing
@@ -1129,7 +1129,7 @@ hscDesugarAndSimplify summary (FrontendTypecheck tc_result) tc_warnings mb_old_h
return $ HscUpdate iface
- -- We are not generating code or writing an interface with simplfied core so we can skip simplification
+ -- We are not generating code or writing an interface with simplified core so we can skip simplification
-- and generate a simple interface.
_ -> do
(iface, _details) <- liftIO $
diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs
index 1b2840cf2a..3e205402e9 100644
--- a/compiler/GHC/Driver/Session.hs
+++ b/compiler/GHC/Driver/Session.hs
@@ -3481,7 +3481,7 @@ fFlagsDeps = [
flagSpec "strictness" Opt_Strictness,
flagSpec "use-rpaths" Opt_RPath,
flagSpec "write-interface" Opt_WriteInterface,
- flagSpec "write-if-simplfied-core" Opt_WriteIfSimplifiedCore,
+ flagSpec "write-if-simplified-core" Opt_WriteIfSimplifiedCore,
flagSpec "write-ide-info" Opt_WriteHie,
flagSpec "unbox-small-strict-fields" Opt_UnboxSmallStrictFields,
flagSpec "unbox-strict-fields" Opt_UnboxStrictFields,
diff --git a/compiler/GHC/Unit/Module/WholeCoreBindings.hs b/compiler/GHC/Unit/Module/WholeCoreBindings.hs
index 8e84abbf57..f6b900f2f2 100644
--- a/compiler/GHC/Unit/Module/WholeCoreBindings.hs
+++ b/compiler/GHC/Unit/Module/WholeCoreBindings.hs
@@ -34,7 +34,7 @@ The lifecycle of a WholeCoreBindings typically proceeds as follows:
3. Then when bytecode is needed, the LoadedBCOs value is inspected and unpacked and
the linkable is used as before.
-The flag `-fwrite-if-simplfied-core` determines whether the extra information is written
+The flag `-fwrite-if-simplified-core` determines whether the extra information is written
to an interface file. The program which is written is the core bindings of the module
after whatever simplification the user requested has been performed. So the simplified core bindings
of the interface file agree with the optimisation level as reported by the interface
@@ -43,7 +43,7 @@ file.
Note [Size of Interface Files with Core Definitions]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-How much overhead does `-fwrite-if-simplfied-core` add to a typical interface file?
+How much overhead does `-fwrite-if-simplified-core` add to a typical interface file?
As an experiment I compiled the `Cabal` library and `ghc` library (Aug 22) with
| Project | .hi | .hi (fat) | .o |