Ticket #5411 (closed bug: fixed)

Opened 22 months ago

Last modified 22 months ago

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 Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

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

Changed 22 months ago by simonpj@…

commit 3932f7f051b55a69465e3d74355cc1b3e4feaaf1

Author: Simon Peyton Jones <simonpj@microsoft.com>
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(-)

Changed 22 months ago by simonpj

  • status changed from new to closed
  • resolution set to fixed

Thank you!

Note: See TracTickets for help on using tickets.