[haskell-llvm] Generating a structure at runtime

Nathan Howell nathan.d.howell at gmail.com
Fri Jul 8 05:37:58 BST 2011


I managed to get something hacked together, I'm not sure if this is optimal
but it seems to work for my simplified test case.

https://gist.github.com/1071154

thanks,
-n

On Thu, Jul 7, 2011 at 2:18 PM, Henning Thielemann <
lemming at henning-thielemann.de> wrote:

>
> On Thu, 7 Jul 2011, Nathan Howell wrote:
>
>  Is it possible to generate a struct type and access it purely runtime?
>> From what it seems the struct fields type constructor (:&)
>> is the only way and I don't know the number of fields and types until
>> runtime (being generated from an AST).
>>
>
> Maybe this helps:
>  http://projects.haskell.org/**pipermail/haskell-llvm/2010-**
> December/000105.html<http://projects.haskell.org/pipermail/haskell-llvm/2010-December/000105.html>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/haskell-llvm/attachments/20110707/f69ee32a/attachment.htm>


More information about the Haskell-llvm mailing list