
4 Aug
2007
4 Aug
'07
4:06 a.m.
Is it useful to have "name of function in C (or Nothing for same as haskell)" , or would it be more convenient as an always-present string that is filled in with the Haskell-name if necessary?
Or to put it another way, should something like `foreign import ccall doSomething :: IO ()` be distinguishable from `foreign import ccall "doSomething" doSomething :: IO ()`
Interesting question, I opted for the "keep as much information as possible" approach, but having said that I can't think of a single useful example where you'd want to be able to distinguish the above. I'd be equally happy for it to be filled in automatically, What do people think? Tom