RE: GHC 4.01 FFI bugs

1999-01-18 Thread Sigbjorn Finne (Intl Vendor)
Manuel M. T. Chakravarty writes: > ... > > Unfortunately, the implementation in GHC 4.01 is still a bit > buggy. Two bugs are reproduced by the following program > > import Int (Int8, intToInt8, Int16, intToInt16, Int32, intToInt32, > Int64, intToInt64) > > foreign import

RE: GHC 4.01 FFI bugs

1999-01-19 Thread Manuel M. T. Chakravarty
"Sigbjorn Finne (Intl Vendor)" <[EMAIL PROTECTED]> wrote, > Manuel M. T. Chakravarty writes: > > > ... > > > > Unfortunately, the implementation in GHC 4.01 is still a bit > > buggy. Two bugs are reproduced by the following program > > > > import Int (Int8, intToInt8, Int16, intToInt16,

RE: GHC 4.01 FFI bugs

1999-01-19 Thread Sigbjorn Finne (Intl Vendor)
Manuel M. T. Chakravarty <[EMAIL PROTECTED]> writes: > > > > --(2) foreign import ccall "" "bar" bar :: IO Int64 > > > > > > > this can be reduced to > > > > foreign import "bar" bar :: IO Int64 > > So, `ccall' is the default? (This is not documented, I think.) > There's bee

RE: GHC 4.01 FFI bugs

1999-01-19 Thread Manuel M. T. Chakravarty
"Sigbjorn Finne (Intl Vendor)" <[EMAIL PROTECTED]> wrote, > > Manuel M. T. Chakravarty <[EMAIL PROTECTED]> writes: > > > > > > > --(2) foreign import ccall "" "bar" bar :: IO Int64 > > > > > > > > > > this can be reduced to > > > > > > foreign import "bar" bar :: IO Int64 > >