[Haskell-cafe] Does the GHC GC handle const application?

David Feuer david.feuer at gmail.com
Tue May 31 00:13:41 UTC 2016

If I create a thunk representing

const x y

will the garbage collector be sure to replace this with x? I'm just
wondering if I have to be concerned about the fact that Data.Sequence
defines update in terms of adjust, with

update x = adjust (const x)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160530/da231534/attachment.html>

More information about the Haskell-Cafe mailing list