Typo in 7.7.1.2. Data instance declarations documentation
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
Trac metadata
Trac field | Value |
---|---|
Version | 7.0.4 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Documentation |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |