[Git][ghc/ghc][wip/T22052] users-guide: Rephrase the rewrite rule documentation

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Mon Aug 15 19:13:15 UTC 2022



Ben Gamari pushed to branch wip/T22052 at Glasgow Haskell Compiler / GHC


Commits:
e16fd88e by Ben Gamari at 2022-08-15T15:13:07-04:00
users-guide: Rephrase the rewrite rule documentation

Previously the wording was a tad unclear. Fix this.

Closes #21114.

- - - - -


1 changed file:

- docs/users_guide/exts/rewrite_rules.rst


Changes:

=====================================
docs/users_guide/exts/rewrite_rules.rst
=====================================
@@ -438,8 +438,8 @@ earlier versions of GHC. For example, suppose that: ::
 where ``intLookup`` is an implementation of ``genericLookup`` that works
 very fast for keys of type ``Int``. You might wish to tell GHC to use
 ``intLookup`` instead of ``genericLookup`` whenever the latter was
-called with type ``Table Int b -> Int -> b``. It used to be possible to
-write ::
+called with type ``Table Int b -> Int -> b``. It used to be possible to write a
+:pragma:`SPECIALIZE <SPECIALIZE>` pragma with a right-hand-side: ::
 
     {-# SPECIALIZE genericLookup :: Table Int b -> Int -> b = intLookup #-}
 



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e16fd88e6939bfe988b80c9ef44efd93bd43b607
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/20220815/cb04271f/attachment.html>


More information about the ghc-commits mailing list