[Haskell] Re: Compilation of big, static tables

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Feb 23 08:22:43 EST 2006


Hello Simon,

Thursday, February 23, 2006, 3:35:51 PM, you wrote:

>> What I would really like is a syntax to statically construct an array,
>> without having to compute it from a list.  I'm not sure that even
>> Template Haskell can help here, since there is no normal form for it to
>> translate to.

SM> Happy & Alex use the hack of encoding static arrays as strings and using
SM> peek to access the data at runtime, FWIW.

this can be accomplished using TH and ForeignArray constructed from
string constant ("..."#)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell mailing list