summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonmar <unknown>2001-08-14 11:41:19 +0000
committersimonmar <unknown>2001-08-14 11:41:19 +0000
commitb19d97709b3a5f8a6be04f113525f868cc48ad53 (patch)
tree6d3e9a5555048f8972b79bdb6e8cc9cf36404654
parent2767767f7b4acf89f56d18231f143b60429631f6 (diff)
downloadhaskell-b19d97709b3a5f8a6be04f113525f868cc48ad53.tar.gz
[project @ 2001-08-14 11:41:19 by simonmar]
Fix example code in the generics section.
-rw-r--r--ghc/docs/users_guide/glasgow_exts.sgml4
1 files changed, 2 insertions, 2 deletions
diff --git a/ghc/docs/users_guide/glasgow_exts.sgml b/ghc/docs/users_guide/glasgow_exts.sgml
index abe513a72c..1374ac4e07 100644
--- a/ghc/docs/users_guide/glasgow_exts.sgml
+++ b/ghc/docs/users_guide/glasgow_exts.sgml
@@ -3415,10 +3415,10 @@ So this too is illegal:
<programlisting>
class Foo a where
op1 :: a -> Bool
- op {| a :*: b |} (Inl x) = True
+ op1 {| a :*: b |} (x :*: y) = True
op2 :: a -> Bool
- op {| p :*: q |} (Inr y) = False
+ op2 {| p :*: q |} (x :*: y) = False
</programlisting>
(The reason for this restriction is that we gather all the equations for a particular type consructor
into a single generic instance declaration.)