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.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to