[Git][ghc/ghc][wip/andreask/deep_discounts] Fix docs

Andreas Klebinger (@AndreasK) gitlab at gitlab.haskell.org
Fri Aug 12 13:36:17 UTC 2022



Andreas Klebinger pushed to branch wip/andreask/deep_discounts at Glasgow Haskell Compiler / GHC


Commits:
715daf11 by Andreas Klebinger at 2022-08-12T15:35:56+02:00
Fix docs

- - - - -


2 changed files:

- docs/users_guide/hints.rst
- docs/users_guide/using-optimisation.rst


Changes:

=====================================
docs/users_guide/hints.rst
=====================================
@@ -404,7 +404,8 @@ decision about inlining a specific binding.
 * :ghc-flag:`-funfolding-case-scaling=⟨n⟩`
 * :ghc-flag:`-funfolding-dict-discount=⟨n⟩`
 * :ghc-flag:`-funfolding-fun-discount=⟨n⟩`
-* :ghc-flag:`-funfolding-max-app-depth=⟨n⟩`
+* :ghc-flag:`-funfolding-max-guide-depth=⟨n⟩`
+* :ghc-flag:`-funfolding-max-arg-depth=⟨n⟩`
 
 Should the simplifier run out of ticks because of a inlining loop
 users are encouraged to try decreasing :ghc-flag:`-funfolding-case-threshold=⟨n⟩`


=====================================
docs/users_guide/using-optimisation.rst
=====================================
@@ -1662,9 +1662,7 @@ by saying ``-fno-wombat``.
        single: inlining, controlling
        single: unfolding, controlling
 
-    If we have a function application `f (Succ (Succ Zero))` with the function `f`:
-
-    .. code-block:: hs
+    If we have a function application `f (Succ (Succ Zero))` with the function `f`::
 
         f x =
             case x of
@@ -1690,9 +1688,7 @@ by saying ``-fno-wombat``.
        single: inlining, controlling
        single: unfolding, controlling
 
-    If we have a function f:
-
-    .. code-block:: hs
+    If we have a function f::
 
         f x =
             case x of



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/715daf11e4395668c4ab78afc0dfc94752fdd487

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/715daf11e4395668c4ab78afc0dfc94752fdd487
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20220812/68ad2991/attachment-0001.html>


More information about the ghc-commits mailing list