There might be a way to do it, I don&#39;t know, but this sounds like an <a href="http://www.perlmonks.org/index.pl?node_id=542341">XY</a> <a href="http://mywiki.wooledge.org/XyProblem">problem</a>. Can I ask what you&#39;re trying to achieve by doing this, or is it just out of curiosity regarding how much garbage is created? (It&#39;s a lot, by the way. Since the only thing a purely functional program can do is create data and read data (as opposed to create, read and update in an impure program) I imagine a purely functional program without GC would hit OOM very, very quickly.)<div>
<div><br>On Thu, Sep 15, 2011 at 2:42 AM, Andreas Voellmy &lt;<a href="mailto:andreas.voellmy@gmail.com">andreas.voellmy@gmail.com</a>&gt; wrote:<br>&gt; Hi everyone, <br>&gt; Is there a way to completely turn garbage collection off in the Haskell<br>
&gt; runtime system? I&#39;m aware of the -A runtime option, but I&#39;d like to<br>&gt; completely turn it off, if possible. I&#39;m OK with running the program until<br>&gt; it runs out of memory, and I&#39;m willing to recompile GHC if needed. <br>
&gt; Regards,<br>&gt; Andreas<br>&gt; _______________________________________________<br>&gt; Haskell-Cafe mailing list<br>&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>&gt;<br><br></div></div>