logo       

[GHC] #868: incorrect function in section 7.4.5.1 of the docs: msg#00115

lang.haskell.glasgow.bugs

Subject: [GHC] #868: incorrect function in section 7.4.5.1 of the docs

#868: incorrect function in section 7.4.5.1 of the docs
------------------------------+---------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Documentation | Version: 6.4.2
Severity: normal | Keywords:
Os: Unknown | Difficulty: Easy (1 hr)
Architecture: Unknown |
------------------------------+---------------------------------------------
The section on implicit paramaters has the example:

least :: (?cmp :: a -> a -> Bool) => [a] -> a
least xs = fst (sort xs)

"fst" should probably be replaced with "head".

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/868>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise