summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_fail/T7506.stderr
blob: dd893df155ad7c684d21153892ede74705fe9c2c (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 "static stdio.h &putchar" c_putchar
        :: Int -> IO ()