[Git][ghc/ghc][master] Fix SCC grouping example

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue Feb 28 01:04:26 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
d0c7bbed by Tom Ellis at 2023-02-27T20:04:07-05:00
Fix SCC grouping example

- - - - -


1 changed file:

- docs/users_guide/profiling.rst


Changes:

=====================================
docs/users_guide/profiling.rst
=====================================
@@ -214,7 +214,7 @@ may not appear in a position where it would change the grouping of
 subexpressions::
 
   a = 1 / 2 / 2                          -- accepted (a=0.25)
-  b = 1 / {-# SCC "name" #-} / 2 / 2     -- rejected (instead of b=1.0)
+  b = 1 / {-# SCC "name" #-} 2 / 2       -- rejected (instead of b=1.0)
 
 This restriction is required to maintain the property that inserting a pragma,
 just like inserting a comment, does not have unintended effects on the



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d0c7bbedb741e6bf947bcdc0e097070242ab56e1
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/20230227/6140e5aa/attachment.html>


More information about the ghc-commits mailing list