Opened 4 years ago

Closed 4 years ago

#5411 closed bug (fixed)

Typo in 7.7.1.2. 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 Revisions:

Description

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

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

class C a where

foo
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.

http://haskell.org/ghc/docs/7.2.1/html/users_guide/type-families.html#data-instance-declarations

Change History (2)

comment:1 Changed 4 years ago by simonpj@…

commit 3932f7f051b55a69465e3d74355cc1b3e4feaaf1

Author: Simon Peyton Jones <[email protected]>
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 4 years ago by simonpj

  • Resolution set to fixed
  • Status changed from new to closed

Thank you!

Note: See TracTickets for help on using tickets.