[Git][ghc/ghc][wip/T22052] users-guide: Rephrase the rewrite rule documentation
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Mon Aug 15 19:16:09 UTC 2022
Ben Gamari pushed to branch wip/T22052 at Glasgow Haskell Compiler / GHC
Commits:
6d4612f9 by Ben Gamari at 2022-08-15T15:14:27-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` 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/6d4612f925dc6ef5d64b84f71addca97e5895108
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6d4612f925dc6ef5d64b84f71addca97e5895108
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/e0ea018a/attachment-0001.html>
More information about the ghc-commits
mailing list