Yes, I was really surprised that this was the case. I while ago I did a
little FRP experiment. I made a top level binding to a list of timer event
occurrences. The list was generated on another thread. To my surprise, I did
not have space leak, which is amazingly cool, but it felt odd :) Is it
documented when GHC will garbage collect CAFs?

> FUD!  CAFs are definitely garbage collected, in fact we have a big lump of
> code generator and runtime complexity (Static Reference Tables, SRTs) to
> ensure that they do.
>
> However, GHCi doesn't always GC CAFs, perhaps that's what you meant.
>
> Cheers,
>        Simon
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to