title: Limit memory used by cabal install?
body: <p>I'm limited by 1GB memory on my server hosting. When I want to compile some big program like <code>git-annex</code>, Cabal eats lot of memory. Is there a way to limit <code>cabal</code> or <code>gcl</code> using some option to limit memory usage?</p>
  
  <p>I updated question with some details: I'm running <code>cabal</code> (1.22.4.0) and <code>Ghc</code> 7.10.2 on the Webfaction hosting (CentOS 7 - 64bit), with access to shell (non root access). Webfaction admin/robot generally tolerate some burst due to compilation. But <code>Ghc</code> / <code>Cabal</code> need too much memory and spend too many minutes for certain package compilation. So system automatically kills all processes. </p>
  
  <p>I need to relaunch the compilation many times to finally obtain a successful result. </p>
  
  <p>My primary objective is that compilation ends with success, however long it takes.</p>