Skip to content
Snippets Groups Projects
Commit e16fd88e authored by Ben Gamari's avatar Ben Gamari
Browse files

users-guide: Rephrase the rewrite rule documentation

Previously the wording was a tad unclear. Fix this.

Closes #21114.
parent d07e58c2
No related branches found
No related tags found
No related merge requests found
Pipeline #55764 canceled
......@@ -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 #-}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment