<br><br><div class="gmail_quote">On Fri, Jan 30, 2009 at 3:28 AM, Simon Marlow <span dir="ltr"><<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>></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. I think I've seen other people encounter this problem before, but I wasn't able to find the solution, if there is one.<br>
<br>
I have a very large static list of type [[Int]]. It is 128 lists of 128 integers each. When I try to load the module that defines this list, I get an error:<br>
<br>
ghc: panic! (the 'impossible' happened)<br>
(GHC version 6.10.1 for i386-apple-darwin):<br>
linkBCO: >= 64k insns in BCO<br>
<br>
Please report this as a GHC bug: <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. Is there anything I can do to avoid this? Thanks!<br>
</blockquote>
<br></div></div>
Sorry for the inconvenience. Splitting the list into two modules should avoid it. Here'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">
Simon<br>
</font></blockquote></div><br>Ah, thanks. 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>