diff options
| author | simonmar <unknown> | 2001-08-14 11:41:19 +0000 |
|---|---|---|
| committer | simonmar <unknown> | 2001-08-14 11:41:19 +0000 |
| commit | b19d97709b3a5f8a6be04f113525f868cc48ad53 (patch) | |
| tree | 6d3e9a5555048f8972b79bdb6e8cc9cf36404654 | |
| parent | 2767767f7b4acf89f56d18231f143b60429631f6 (diff) | |
| download | haskell-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.sgml | 4 |
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.) |
