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

#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

#10645: Fix Data.List.sortOn documentation -------------------------------------+------------------------------------- Reporter: spl | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 7.10.2-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by spl): I would submit a patch myself, but it will take me time to set everything up and it's such a small change, I'm hoping it's easy enough for somebody else to do it. If not, let me know, and I'll do it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10645#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10645: Fix Data.List.sortOn documentation -------------------------------------+------------------------------------- Reporter: spl | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.12.1 Component: libraries/base | Version: 7.10.2-rc2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => fixed * milestone: => 7.12.1 Comment: Fixed in commit 504c2aeb8bf36e031c0751e33b85bab58680542e: {{{ Author: Thomas Miedema <> Date: Thu Jul 16 10:10:18 2015 +0200 Docs: `sortOn = sortBy (comparing f)` [skip ci] }}} Thanks for the report. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10645#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC