
15 Mar
2006
15 Mar
'06
12:09 p.m.
Brian Hulley wrote:
Hi - I've got the beginnings of an API for a GUI system as follows:
foreign import ccall duma_createEdit :: IO (Ptr (Edit a))
createEdit :: IO (ForeignPtr (Edit a))
These should of course be: foreign import ccall duma_createEdit :: IO (Ptr (Edit ())) and createEdit :: IO (ForeignPtr (Edit ())) (just in case anyone else new to phantom types reads this email before writing a GUI) Regards, Brian.