#14785: accumArray is too lazy -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: Core Libraries | Version: 8.2.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4403 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"08345bd0e8d237ec3929aaee7613c4f76e07e131/ghc" 08345bd/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="08345bd0e8d237ec3929aaee7613c4f76e07e131" Make accumArray and accum stricter `accumArray` was lazier than documented. `accum` did not have documented strictness. The extra laziness allowed thunks to build up in the array. Force the results of applying the accumulating function to resolve. Reviewers: hvr, bgamari Reviewed By: bgamari Subscribers: alpmestan, rwbarton, thomie, carter GHC Trac Issues: #14785 Differential Revision: https://phabricator.haskell.org/D4403 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14785#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler