patch applied (hat): Foreign importing a C function :: () -> res was rather nasty because
10 Oct
2006
10 Oct
'06
10:58 a.m.
Thu May 18 09:34:59 PDT 2000 malcolm * Foreign importing a C function :: () -> res was rather nasty because it tried to pluck a value of void type from Haskell and give it to C - also the actual C call then tried to use the value! I've done a small hack so that a function of arity=1 with arg () goes through fine. I can't see anyone needing to pass a () arg for any reason other than to force re-evaluation on multiple calls, so that should be ok I hope. M ./src/compiler98/Foreign.hs -5 +22
7027
Age (days ago)
7027
Last active (days ago)
0 comments
1 participants
participants (1)
-
Malcolm Wallace