[GHC] #9716: The list modules need a bit of post-BBP shaking
#9716: The list modules need a bit of post-BBP shaking -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: ekmett Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Core Libraries | Version: 7.8.3 Keywords: lists | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Unknown | Type of failure: Blocked By: | None/Unknown Related Tickets: | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- We currently have an unfortunately named `Data.List.OldList`, and no terribly clear story to explain it. One concept, due in part to me and in part to Carter: 1. Move all the basics needed to implement `instance Foldable []` from `Data.OldList` to `Data.List.Base` (or some similar name). 2. Move all the "extras" like `inits`, `tails`, and `sort` from `Data.OldList` into `Data.List`. 3. Delete `Data.OldList`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9716> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9716: The list modules need a bit of post-BBP shaking -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: ekmett Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.9 Libraries | Keywords: lists Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by dfeuer): * version: 7.8.3 => 7.9 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9716#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9716: The list modules need a bit of post-BBP shaking -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: ekmett Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.9 Libraries | Keywords: lists Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: D380 | -------------------------------------+------------------------------------- Changes (by dfeuer): * status: new => patch * differential: => D380 Comment: I've uploaded a CR to get this started. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9716#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9716: The list modules need a bit of post-BBP shaking -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: ekmett Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.9 Libraries | Keywords: lists Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D380 | -------------------------------------+------------------------------------- Changes (by dfeuer): * differential: D380 => Phab:D380 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9716#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9716: The list modules need a bit of post-BBP shaking -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: ekmett Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.9 Libraries | Keywords: lists Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D380 | -------------------------------------+------------------------------------- Comment (by Herbert Valerio Riedel <hvr@…>): In [changeset:"75979f3661ff16ec44528a23005ac1be2b9683fe/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="75979f3661ff16ec44528a23005ac1be2b9683fe" base: Refactor/clean-up *List modules This gets rid of all hand-unboxing in `GHC.List` and moves `Foldable` requirements from `Data.OldList` into `GHC.List` (preparatory work for addressing #9716). Specifically, this moves the definition of `maximum`, `minimum`, `foldl'`, `foldl1`, `foldl1'`, `sum`, and `product` into `GHC.List` (which now needs to import `GHC.Num`) Make `take`, `drop`, `length`, and `!!` generally saner (see also #9510) Performance overall seems minimally affected. Some things go up; some things go down; nothing moves horribly much. The code is much easier to read. Differential Revision: https://phabricator.haskell.org/D380 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9716#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9716: The list modules need a bit of post-BBP shaking -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.9 Libraries | Keywords: lists Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D380 | -------------------------------------+------------------------------------- Changes (by dfeuer): * owner: ekmett => * status: patch => new -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9716#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9716: The list modules need a bit of post-BBP shaking -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: ekmett Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Core | Version: 7.9 Libraries | Keywords: lists Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D380 | -------------------------------------+------------------------------------- Changes (by dfeuer): * owner: => ekmett -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9716#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC