<br><br><div class="gmail_quote">On Fri, Jan 30, 2009 at 3:28 AM, Simon Marlow <span dir="ltr">&lt;<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Philip Weaver wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello. &nbsp;I think I&#39;ve seen other people encounter this problem before, but I wasn&#39;t able to find the solution, if there is one.<br>
<br>
I have a very large static list of type [[Int]]. &nbsp;It is 128 lists of 128 integers each. &nbsp;When I try to load the module that defines this list, I get an error:<br>
<br>
 &nbsp; ghc: panic! (the &#39;impossible&#39; happened)<br>
 &nbsp; &nbsp; (GHC version 6.10.1 for i386-apple-darwin):<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; linkBCO: &gt;= 64k insns in BCO<br>
<br>
 &nbsp; Please report this as a GHC bug: &nbsp;<a href="http://www.haskell.org/ghc/reportabug" target="_blank">http://www.haskell.org/ghc/reportabug</a><br>
<br>
This happens on both linux and mac os, both ghc-6.8.3 and ghc-6.10.1, and both GHC and GHCi. &nbsp;Is there anything I can do to avoid this? &nbsp;Thanks!<br>
</blockquote>
<br></div></div>
Sorry for the inconvenience. &nbsp;Splitting the list into two modules should avoid it. &nbsp;Here&#39;s the relevant ticket:<br>
<br>
<a href="http://hackage.haskell.org/trac/ghc/ticket/789" target="_blank">http://hackage.haskell.org/trac/ghc/ticket/789</a><br>
<br>
Cheers,<br><font color="#888888">
 &nbsp; &nbsp; &nbsp; &nbsp;Simon<br>
</font></blockquote></div><br>Ah, thanks.&nbsp; In this particular case, I was also able to get it to work by binding each list inside the top-level list like this:<br><br>top_level_list = [ list0, list1, list2, list3, list4, list5 ... list127]<br>
<br>list0 = ...<br>list1 = ...<br>list2 = ...<br>...<br>list127 = ...<br><br>- Philip<br><br>