[GHC] #10645: Fix Data.List.sortOn documentation

GHC ghc-devs at haskell.org
Thu Jul 16 07:52:05 UTC 2015


#10645: Fix Data.List.sortOn documentation
-------------------------------------+-------------------------------------
              Reporter:  spl         |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:              |           Version:  7.10.2-rc2
  libraries/base                     |  Operating System:  Unknown/Multiple
              Keywords:              |   Type of failure:  Documentation
          Architecture:              |  bug
  Unknown/Multiple                   |        Blocked By:
             Test Case:              |   Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 The {{{sortOn}}} documentation says:

 {{{
 @sortOn f@ is equivalent to @sortBy . comparing f@
 }}}

 but this is not correct (it does not type-check). It should say:

 {{{
 @sortOn f@ is equivalent to @sortBy (comparing f)@
 }}}

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


More information about the ghc-tickets mailing list