Opened 6 years ago

Closed 6 years ago

#5411 closed bug (fixed)

Typo in Data instance declarations documentation

Reported by: uznx Owned by:
Priority: normal Milestone:
Component: Documentation Version: 7.0.4
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


In User's Guide in section Data instance declarations is the example:

" Instead, you would have to write foo as a class operation, thus:

class C a where

T a -> Int

instance Foo Int where

foo A = 1

instance Foo Char where

foo B = 2


I think the first line should be "class Foo a where", not C.

Change History (2)

comment:1 Changed 6 years ago by simonpj@…

commit 3932f7f051b55a69465e3d74355cc1b3e4feaaf1

Author: Simon Peyton Jones <>
Date:   Fri Aug 12 21:47:14 2011 +0100

    Correct typo (fix Trac #5411)

 docs/users_guide/glasgow_exts.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

comment:2 Changed 6 years ago by simonpj

Resolution: fixed
Status: newclosed

Thank you!

Note: See TracTickets for help on using tickets.