
So, it seems to me we need a new kind of Core lambda, or a flag on lambda, that means (a) don't float out of this, (b) don't beta reduce
#13080: Memory leak caused by nested monadic loops -------------------------------------+------------------------------------- Reporter: Feuerbach | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): this. We already have (a), namely one-shot lambdas. I don't understand why (b) could possibly be good. Perhaps someone can give a from-scratch articulation of the problem and possible solutions, informed by this thread? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13080#comment:19 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler