<a href="https:&#x2F;&#x2F;tweag.github.io&#x2F;HaskellR&#x2F;docs&#x2F;managing-memory.html" rel="nofollow">https:&#x2F;&#x2F;tweag.github.io&#x2F;HaskellR&#x2F;docs&#x2F;managing-memory.html</a><p><a href="https:&#x2F;&#x2F;tweag.github.io&#x2F;HaskellR&#x2F;docs&#x2F;memory-allocation.html" rel="nofollow">https:&#x2F;&#x2F;tweag.github.io&#x2F;HaskellR&#x2F;docs&#x2F;memory-allocation.html</a><p>Both these links have more information on this.<p>As far as I can tell (and most of this is way over my head) the native R garbage collection is used