<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="" style="font-family:arial,sans-serif;font-size:13px">Hi Dan,<div><br></div><div>I actually ran into the same problem installing the json library (as requirement of pandoc) some time ago. I solved this by using a more recent version of GHC (for linux in my case). I think 6.12.3 is regarded as quite dated.</div>
<div><br></div><div>I hope this helps.</div><div><br></div><div>Best regards,</div><div><br></div><div>Rico Moorman</div></span><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 7:18 PM, 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">Hi all,<br>
<br>
Please tell me where I should post this if this is not the appropriate list.<br>
<br>
I tried to install the json-0.4.4 package on Mac OS 10.5.8, and got this error:<br>
<br>
$  sudo cabal install &quot;json-0.4.4&quot;<br>
Building json-0.4.4...<br>
[1 of 7] Compiling Text.JSON.Types  ( Text/JSON/Types.hs,<br>
dist/build/Text/JSON/Types.o )<br>
[2 of 7] Compiling Text.JSON.Pretty ( Text/JSON/Pretty.hs,<br>
dist/build/Text/JSON/Pretty.o )<br>
[3 of 7] Compiling Text.JSON.ReadP  ( Text/JSON/ReadP.hs,<br>
dist/build/Text/JSON/ReadP.o )<br>
<br>
Text/JSON/ReadP.hs:104:21:<br>
    Warning: A do-notation statement discarded a result of type b.<br>
             Suppress this warning by saying &quot;_ &lt;- n&quot;,<br>
             or by using the flag -fno-warn-unused-do-bind<br>
[4 of 7] Compiling Text.JSON.Parsec ( Text/JSON/Parsec.hs,<br>
dist/build/Text/JSON/Parsec.o )<br>
ghc: memory allocation failed (requested 2097152 bytes)<br>
cabal: Error: some packages failed to install:<br>
json-0.4.4 failed during the building phase. The exception was:<br>
ExitFailure 1<br>
<br>
This is on a machine with 16GB of RAM.<br>
<br>
I don&#39;t think<br>
<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>
applies because I&#39;m using higher versions than mentioned there:<br>
$ ghc --version<br>
The Glorious Glasgow Haskell Compilation System, version 6.12.3<br>
$ cabal --version<br>
cabal-install version 0.8.2<br>
using version 1.8.0.6 of the Cabal library<br>
<br>
I know Mac OS 10.5.8 is old, but unfortunately ugrading this<br>
particular machine is not an option.<br>
Hope someone can help.<br>
Thanks,<br>
Dan<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>
</blockquote></div><br></div>