#5411: Typo in 7.7.1.2. Data instance declarations documentation
---------------------------------+------------------------------------------
    Reporter:  uznx              |       Owner:               
        Type:  bug               |      Status:  new          
    Priority:  normal            |   Component:  Documentation
     Version:  7.0.4             |    Keywords:               
    Testcase:                    |   Blockedby:               
          Os:  Unknown/Multiple  |    Blocking:               
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown 
---------------------------------+------------------------------------------
 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

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5411>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to