Ticket #5411 (closed bug: fixed)
Typo in 7.7.1.2. Data instance declarations documentation
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
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
Note: See
TracTickets for help on using
tickets.
