Re: Strict arguments with foreign import
Marcin 'Qrczak' Kowalczyk <[email protected]> Wed, 16 Mar 2005 10:27:07 +0100
| Newsgroups | gmane.comp.lang.haskell.ffi |
|---|---|
| Message-ID | <[email protected]> |
Andre Pang <[email protected]> writes: > I'm just wondering -- for "primitive" C types (int, float, char, etc), > why was the decision made in the FFI to have function declarations > look like e.g. > > foreign import ccall "math.h sin" sin :: CDouble -> CDouble > > rather than > > foreign import ccall "math.h sin" sin :: !CDouble -> !CDouble Haskell doesn't reflect strictness of functions in their types, no matter whether foreign or not. -- __("< Marcin Kowalczyk \__/ [email protected] ^^ http://qrnik.knm.org.pl/~qrczak/