[Git][ghc/ghc][wip/pattern-synonym-docs] Fix docs for pattern synonyms

Brandon Chinn (@brandonchinn178) gitlab at gitlab.haskell.org
Sun Oct 2 18:13:43 UTC 2022



Brandon Chinn pushed to branch wip/pattern-synonym-docs at Glasgow Haskell Compiler / GHC


Commits:
cceea0f1 by Brandon Chinn at 2022-10-02T11:13:38-07:00
Fix docs for pattern synonyms
- - - - -


1 changed file:

- docs/users_guide/exts/pattern_synonyms.rst


Changes:

=====================================
docs/users_guide/exts/pattern_synonyms.rst
=====================================
@@ -524,9 +524,9 @@ Pragmas for pattern synonyms
 ----------------------------
 
 The :ref:`inlinable-pragma`, :ref:`inline-pragma` and :ref:`noinline-pragma` are supported for pattern
-synonyms. For example: ::
+synonyms as of GHC 9.2. For example: ::
 
-    patternInlinablePattern x = [x]
+    pattern InlinablePattern x = [x]
     {-# INLINABLE InlinablePattern #-}
     pattern InlinedPattern x = [x]
     {-# INLINE InlinedPattern #-}



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cceea0f195bc23219058fc0f59883550ab811b68
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/20221002/08af5208/attachment.html>


More information about the ghc-commits mailing list