fixing Foreign

John Meacham john at
Fri Dec 15 20:39:46 EST 2006

On Fri, Dec 15, 2006 at 04:45:51PM -0600, Taral wrote:
> On 12/15/06, John Meacham <john at> wrote:
> >plusPtr :: Ptr a -> IntPtr -> Ptr a
> >minusPtr :: Ptr a -> Ptr b -> IntPtr
> This is ptrdiff_t, if I recall correctly...

indeed. C's 'typedef's are like haskell 'type's though and are more for
documentation than anything in many cases.  For haskell we don't want to
go and create distinct haskell types for everything, IntPtr is perfect
for this task. :)


John Meacham - ⑆⑆john⑈

More information about the Libraries mailing list