summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-08-15 12:08:34 -0400
committerBen Gamari <ben@smart-cactus.org>2022-08-15 12:09:17 -0400
commit2d875b3e640a47768f0e624403af2309c60bca97 (patch)
tree073b6741c8b1212c741de525b125b2e73f7f8490
parentdca43a04fb36e0ae0ed61455f215660eed2856a9 (diff)
downloadhaskell-wip/T21114.tar.gz
users-guide: Rephrase the rewrite rule documentationwip/T21114
Previously the wording was a tad unclear. Fix this. Closes #21114.
-rw-r--r--docs/users_guide/exts/rewrite_rules.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/users_guide/exts/rewrite_rules.rst b/docs/users_guide/exts/rewrite_rules.rst
index 7da423f42e..57b6bf17ac 100644
--- a/docs/users_guide/exts/rewrite_rules.rst
+++ b/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 ⟨name⟩ :: ⟨type⟩` pragma with a right-hand-side: ::
{-# SPECIALIZE genericLookup :: Table Int b -> Int -> b = intLookup #-}