[Haskell-cafe] Generating Code

Antoine Latter aslatter at gmail.com
Sat Dec 10 04:22:32 CET 2011


On Fri, Dec 9, 2011 at 6:32 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
> On Fri, Dec 9, 2011 at 17:27, Antoine Latter <aslatter at gmail.com> wrote:
>>
>> On Fri, Dec 9, 2011 at 2:17 PM, Erik Hesselink <hesselink at gmail.com>
>> wrote:
>> > Since you ask how other packages solve this problem, and since most
>> > packages use template haskell, I have to ask: why can't you use
>> > template haskell for this?
>>
>> For my case, template haskell can't create modules, and template
>> haskell solves a different problem - I've not interested in creating
>> Haskell declarations from Haskell declarations - I'm interested in
>> creating Haskell modules from an external, formal,  specification. In
>> a sense I'm compiling to Haskell.
>
>
> It occurs to me that c2hs (or more appropriately the gtk2hsc2hs fork) is
> intended to solve this problem; have you looked into it?
>

That may be good for the opengl-raw, I was working on generating
Haskell modules from an XML spec - I crashed the thread with my own
(similar) problems :-)

> --
> brandon s allbery                                      allbery.b at gmail.com
> wandering unix systems administrator (available)     (412) 475-9364 vm/sms
>



More information about the Haskell-Cafe mailing list