WordPtr,IntPtr,IntMax,WordMax

John Meacham john at repetae.net
Thu Apr 6 19:28:01 EDT 2006


I was curious if ghc could support the following basic types, they will
likely just be aliases of existing types.

WordPtr uintptr_t
WordMax uintmax_t
IntPtr  intptr_t
IntMax  intmax_t

all these C types are defined by ISO C so should be available,
otherwise, they are easy enough to generate in ghcs autoconf script.

jhc provides these under these names in Data.Word and Data.Int.
they would be useful for writing jhc/ghc portable low level code, and
writing 32/64 bit safe code.

        John

-- 
John Meacham - ⑆repetae.net⑆john⑈


More information about the Glasgow-haskell-users mailing list