Re: Ptr and ForeignPtr Questions

21 Sep
2001
21 Sep
'01
5:32 a.m.
At 2001-09-21 02:20, Manuel M. T. Chakravarty wrote:
One could attempt to generate C prototypes from the Haskell type declarations or similar things, btu it doesn't work out.
Why not? Isn't there a straightforward type map? -- Ashley Yakeley, Seattle WA

23 Sep
23 Sep
3:45 a.m.
New subject: Ptr and ForeignPtr Questions
Ashley Yakeley
At 2001-09-21 02:20, Manuel M. T. Chakravarty wrote:
One could attempt to generate C prototypes from the Haskell type declarations or similar things, btu it doesn't work out.
Why not? Isn't there a straightforward type map?
No, unfortunately not. Consider, for example, that storage qualifiers would have to be generated correctly and there is no way to determine form a Haskell type whether a `const' modifier needs to be added. Manuel
8641
Age (days ago)
8643
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ashley Yakeley
-
Manuel M. T. Chakravarty