blob: 9a1aa25a8e9158ab258c621f2f2bb19d7d6c4849 (
plain)
1
2
3
4
5
6
7
8
|
T7506.hs:6:1:
Unacceptable type in foreign declaration:
‘Int -> IO ()’ cannot be marshalled in a foreign call
A foreign-imported address (via &foo) must have type (Ptr a) or (FunPtr a)
When checking declaration:
foreign import ccall safe "stdio.h &putchar" c_putchar
:: Int -> IO ()
|