<span style="font-family:arial,sans-serif;font-size:13px">You might have the most recent haskell platform installed, but the version of GHC that is actually being used to compile is much older.</span><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">I would guess that you have previously installed *something* using Macports (or fink/homebrew), which depended on that specific GHC. Try removing it via the macports.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Peter</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 November 2012 21:42, Dan Tenenbaum <span dir="ltr">&lt;<a href="mailto:dtenenba@fhcrc.org" target="_blank">dtenenba@fhcrc.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks. My goal is also to install pandoc.<br>
The problem is that what I currently have is the latest version of the<br>
Haskell Platform which is available as a binary for Mac OS 10.5.<br>
If I want a more recent Haskell Platform, I need to build from source<br>
(and/or use port or brew) which I haven&#39;t been able to do<br>
successfully, but I guess that&#39;s a different post....<br>
<br>
Thanks,<br>
Dan<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, Nov 20, 2012 at 12:52 PM, Rico Moorman &lt;<a href="mailto:rico.moorman@gmail.com">rico.moorman@gmail.com</a>&gt; wrote:<br>
&gt; Hi Dan,<br>
&gt;<br>
&gt; I actually ran into the same problem installing the json library (as<br>
&gt; requirement of pandoc) some time ago. I solved this by using a more recent<br>
&gt; version of GHC (for linux in my case). I think 6.12.3 is regarded as quite<br>
&gt; dated.<br>
&gt;<br>
&gt; I hope this helps.<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Rico Moorman<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Nov 19, 2012 at 7:18 PM, Dan Tenenbaum &lt;<a href="mailto:dtenenba@fhcrc.org">dtenenba@fhcrc.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; Please tell me where I should post this if this is not the appropriate<br>
&gt;&gt; list.<br>
&gt;&gt;<br>
&gt;&gt; I tried to install the json-0.4.4 package on Mac OS 10.5.8, and got this<br>
&gt;&gt; error:<br>
&gt;&gt;<br>
&gt;&gt; $  sudo cabal install &quot;json-0.4.4&quot;<br>
&gt;&gt; Building json-0.4.4...<br>
&gt;&gt; [1 of 7] Compiling Text.JSON.Types  ( Text/JSON/Types.hs,<br>
&gt;&gt; dist/build/Text/JSON/Types.o )<br>
&gt;&gt; [2 of 7] Compiling Text.JSON.Pretty ( Text/JSON/Pretty.hs,<br>
&gt;&gt; dist/build/Text/JSON/Pretty.o )<br>
&gt;&gt; [3 of 7] Compiling Text.JSON.ReadP  ( Text/JSON/ReadP.hs,<br>
&gt;&gt; dist/build/Text/JSON/ReadP.o )<br>
&gt;&gt;<br>
&gt;&gt; Text/JSON/ReadP.hs:104:21:<br>
&gt;&gt;     Warning: A do-notation statement discarded a result of type b.<br>
&gt;&gt;              Suppress this warning by saying &quot;_ &lt;- n&quot;,<br>
&gt;&gt;              or by using the flag -fno-warn-unused-do-bind<br>
&gt;&gt; [4 of 7] Compiling Text.JSON.Parsec ( Text/JSON/Parsec.hs,<br>
&gt;&gt; dist/build/Text/JSON/Parsec.o )<br>
&gt;&gt; ghc: memory allocation failed (requested 2097152 bytes)<br>
&gt;&gt; cabal: Error: some packages failed to install:<br>
&gt;&gt; json-0.4.4 failed during the building phase. The exception was:<br>
&gt;&gt; ExitFailure 1<br>
&gt;&gt;<br>
&gt;&gt; This is on a machine with 16GB of RAM.<br>
&gt;&gt;<br>
&gt;&gt; I don&#39;t think<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.haskell.org/cabal/FAQ.html#cabal-goes-into-an-infinite-loop--runs-out-of-memory" target="_blank">http://www.haskell.org/cabal/FAQ.html#cabal-goes-into-an-infinite-loop--runs-out-of-memory</a><br>


&gt;&gt; applies because I&#39;m using higher versions than mentioned there:<br>
&gt;&gt; $ ghc --version<br>
&gt;&gt; The Glorious Glasgow Haskell Compilation System, version 6.12.3<br>
&gt;&gt; $ cabal --version<br>
&gt;&gt; cabal-install version 0.8.2<br>
&gt;&gt; using version 1.8.0.6 of the Cabal library<br>
&gt;&gt;<br>
&gt;&gt; I know Mac OS 10.5.8 is old, but unfortunately ugrading this<br>
&gt;&gt; particular machine is not an option.<br>
&gt;&gt; Hope someone can help.<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Dan<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Beginners mailing list<br>
&gt;&gt; <a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
&gt;&gt; <a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div>