blob: b1581dd20dd71955fdfce3d946bc99e72ab5abac (
plain)
1
2
3
4
5
6
7
8
|
-- !!! cc008 -- foreign export dynamic returning newtype of Addr
module ShouldCompile where
import Foreign
type Addr = FunPtr (IO ())
newtype NPtr a = NPtr Addr
foreign import ccall "wrapper" mkFoo :: IO () -> IO (NPtr Int)
|