the impossible happened, large static list.
philip.weaver at gmail.com
Fri Jan 30 18:43:34 EST 2009
On Fri, Jan 30, 2009 at 3:28 AM, Simon Marlow <marlowsd at gmail.com> wrote:
> Philip Weaver wrote:
>> 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.
>> 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:
>> ghc: panic! (the 'impossible' happened)
>> (GHC version 6.10.1 for i386-apple-darwin):
>> linkBCO: >= 64k insns in BCO
>> Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
>> 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!
> Sorry for the inconvenience. Splitting the list into two modules should
> avoid it. Here's the relevant ticket:
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:
top_level_list = [ list0, list1, list2, list3, list4, list5 ... list127]
list0 = ...
list1 = ...
list2 = ...
list127 = ...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Glasgow-haskell-users