On 02 November 2005 17:06, Scherrer, Chad wrote:
>> Surely not... sum is defined by Haskell 98 as:
>>
>> sum = foldl (+) 0
>>
>> and this is exactly what GHC provides. Furthermore we have
>> specialised strict versions for Int and Integer.
>>
>
> I'd been using ghci for testing along the way
Am Mittwoch, 2. November 2005 15:02 schrieb David Roundy:
> [...] Why is it that in C++ I can write
>
> void strcpy(char *dest, const char *src);
>
> but in Haskell I must import this function as
>
> > foreign import ccall unsafe "static string.h strcpy"
> > strcpy :: Ptr CChar -> Ptr CCha