<div class="gmail_quote">On 22 December 2010 16:47, Antoine Latter <span dir="ltr">&lt;<a href="mailto:aslatter@gmail.com">aslatter@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

ghc doesn&#39;t, by default, go searching for packages to link in to the<br>
resulatant executable..<br>
<br>
If you try &#39;ghc --make scheme.hs&#39; your example will work better.</blockquote><div><br></div><div>Are great, thanks a lot.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


You can also specify what to link manually, but --make works pretty<br>
well most of the time.<br>
<br>
In ghc version 7 &#39;--make&#39; is the default, but until that&#39;s more widely<br>
distributed you&#39;ll want to get used to using the switch.<br></blockquote><div><br></div><div>Yes it was linking before I upgraded GHC, hence my confusion :)</div><div><br></div><div>Many thanks Antoine,</div><div><br>

</div><div>Aaron</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Take care,<br>
<font color="#888888">Antoine<br>
</font><div><div></div><div class="h5"><br>
On Wed, Dec 22, 2010 at 10:36 AM, Aaron Gray &lt;<a href="mailto:aaronngray.lists@gmail.com">aaronngray.lists@gmail.com</a>&gt; wrote:<br>
&gt; On 22 December 2010 16:27, Antoine Latter &lt;<a href="mailto:aslatter@gmail.com">aslatter@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; What commands did you enter to produce this error?<br>
&gt;&gt;<br>
&gt;<br>
&gt; ghc scheme.hs<br>
&gt; Aaron<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Ahanks,<br>
&gt;&gt; Antoine<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Dec 22, 2010 at 9:54 AM, Aaron Gray &lt;<a href="mailto:aaronngray.lists@gmail.com">aaronngray.lists@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Missing Parsec library :-<br>
&gt;&gt; &gt; scheme.o(.text+0x4fa):fake: undefined reference to<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; `parseczm2zi1zi0zi0_TextziParserCombinatorsziParsecziCombinator_skipMany1_closure&#39;<br>
&gt;&gt; &gt; scheme.o(.text+0x501):fake: undefined reference to<br>
&gt;&gt; &gt; `parseczm2zi1zi0zi0_TextziPaserCombinatorsziParsecziChar_space_closure&#39;<br>
&gt;&gt; &gt; scheme.o(.text+0x5c2):fake: undefined reference to<br>
&gt;&gt; &gt; `parseczm2zi1zi0zi0_TextziParserCombinatorsziParsecziChar_oneOf_closure&#39;<br>
&gt;&gt; &gt; scheme.o(.text+0x63a):fake: undefined reference to<br>
&gt;&gt; &gt; `mtlzm1zi1zi0zi0_ControlziMonadziTrans_zdf1_closure&#39;<br>
&gt;&gt; &gt; GHC from :-<br>
&gt;&gt; &gt;     <a href="http://www.haskell.org/ghc/dist/stable/dist/" target="_blank">http://www.haskell.org/ghc/dist/stable/dist/</a><br>
&gt;&gt; &gt;     ghc-7.0.1.20101221-i386-windows.exe<br>
&gt;&gt; &gt; and earlier.<br>
&gt;&gt; &gt; Aaron<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Haskell-Cafe mailing list<br>
&gt;&gt; &gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt;&gt; &gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>