[commit: ghc] master: relnotes: Fix typo in pattern synonym example (6549706)
git at git.haskell.org
git at git.haskell.org
Fri Dec 22 17:14:01 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/6549706ffe47a18edb22e810d7e136a72891c161/ghc
>---------------------------------------------------------------
commit 6549706ffe47a18edb22e810d7e136a72891c161
Author: Ben Gamari <ben at smart-cactus.org>
Date: Wed Dec 20 22:59:28 2017 -0500
relnotes: Fix typo in pattern synonym example
>---------------------------------------------------------------
6549706ffe47a18edb22e810d7e136a72891c161
docs/users_guide/8.4.1-notes.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/users_guide/8.4.1-notes.rst b/docs/users_guide/8.4.1-notes.rst
index 6ad4cc5..963e8d9 100644
--- a/docs/users_guide/8.4.1-notes.rst
+++ b/docs/users_guide/8.4.1-notes.rst
@@ -60,11 +60,11 @@ Language
error, and explicitly bidirectional pattern synonyms should be used in their
stead. That is, instead of using this (which is an error): ::
- data StrictJust a = Just !a
+ pattern StrictJust a = Just !a
Use this: ::
- data StrictJust a <- Just !a where
+ pattern StrictJust a <- Just !a where
StrictJust !a = Just a
- GADTs with kind-polymorphic type arguments now require :ghc-flag:`-XTypeInType`.
More information about the ghc-commits
mailing list