23 Feb
2006
23 Feb
'06
1:22 p.m.
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@gmail.com