Also, I find UPX essential in this kind of situation.  It can make self-decompressing executables without a noticable slowdown (in fact, a speedup on network drives!).<br><br>Typically I see something like this:<br><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ghc:            <b>54.6 MB</b></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  after &#39;strip&#39;:  <b>33.1 MB</b></span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  after UPX:      <b>6.2</b> <b> MB</b></span><br style="font-family: courier new,monospace;"><br>-Ryan<br style="font-family: courier new,monospace;"><br><br><div class="gmail_quote">

On Tue, Oct 11, 2011 at 4:00 PM, Joachim Breitner <span dir="ltr">&lt;<a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
Am Dienstag, den 11.10.2011, 11:02 -0700 schrieb Iavor Diatchki:<br>
<div class="im">&gt; The context is that I need to make a demo VM, which has a limited<br>
&gt; amount of space, and I&#39;d like to have GHC installed on the system but<br>
&gt; the default GHC installation (~700MB) does not fit.  The installation<br>
&gt; does not need to be complete---I don&#39;t need documentation, or<br>
&gt; profiling, or Template Haskell---and I only need to install a fairly<br>
&gt; limited set of libraries, just enough to build my project.  I&#39;d be<br>
&gt; happy to build a custom version of GHC, if that&#39;s the easiest way to<br>
&gt; achieve the goal.<br>
&gt;<br>
&gt; So, if you have experience doing something similar, or you know of<br>
&gt; what might be the best way to approach the problem, advice would be<br>
&gt; most welcome!<br>
<br>
</div>The debian ghc package comes without profiling (in ghc-prof) and<br>
documentation (ghc-doc). I’d be happy to hear that someone actually<br>
profits from that split :-) Installed size is about 250MB. So also in<br>
terms of efforts it might be easiest to bootstrap a minimal Debian and<br>
install ghc on it.<br>
<br>
Greetings,<br>
Joachim<br>
<br>
PS: I’m a Debian Developer, so of course my advice is biased :-)<br>
<font color="#888888"><br>
<br>
--<br>
Joachim &quot;nomeata&quot; Breitner<br>
  <a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a>  |  <a href="mailto:nomeata@debian.org">nomeata@debian.org</a>  |  GPG: 0x4743206C<br>
  xmpp: <a href="mailto:nomeata@joachim-breitner.de">nomeata@joachim-breitner.de</a> | <a href="http://www.joachim-breitner.de/" target="_blank">http://www.joachim-breitner.de/</a><br>
<br>
</font><br>_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
<br></blockquote></div><br>