[GHC] #12868: Add groupOn function to Data.List

#12868: Add groupOn function to Data.List -------------------------------------+------------------------------------- Reporter: wizzup | Owner: Type: feature | Status: new request | Priority: low | Milestone: Component: | Version: libraries/base | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- sortOn was already add in #9004 but what about groupOn ? According to https://wiki.haskell.org/List_function_suggestions#groupOn_and_sortOn both functions are "so common". Although rejected in #2659, this might be a good time to reconsider. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12868 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12868: Add groupOn function to Data.List -------------------------------------+------------------------------------- Reporter: wizzup | Owner: Type: feature request | Status: new Priority: low | Milestone: Component: libraries/base | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Description changed by wizzup: @@ -1,1 +1,1 @@ - sortOn was already add in #9004 but what about groupOn ? + sortOn was already added in #9004 but what about groupOn ? New description: sortOn was already added in #9004 but what about groupOn ? According to https://wiki.haskell.org/List_function_suggestions#groupOn_and_sortOn both functions are "so common". Although rejected in #2659, this might be a good time to reconsider. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12868#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12868: Add groupOn function to Data.List -------------------------------------+------------------------------------- Reporter: wizzup | Owner: Type: feature request | Status: new Priority: low | Milestone: Component: libraries/base | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by nomeata): Worth considering. You should raise the issue on the `libraries` list, following the process outlined on https://wiki.haskell.org/Library_submissions -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12868#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12868: Add groupOn function to Data.List -------------------------------------+------------------------------------- Reporter: wizzup | Owner: Type: feature request | Status: new Priority: low | Milestone: Component: libraries/base | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by wizzup): On a side note; the `Data.List.Split` use `On` with different meaning. There should not be inconsistency in `Data.List` and `Data.List.Split`. {{{
splitOn "x" "axbxc" ["a","b","c"]
splitOn "x" "axbxcx" ["a","b","c",""]
splitWhen (<0) [1,3,-4,5,7,-9,0,2] [[1,3],[5,7],[0,2]] }}}
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12868#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC