#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