ccfail002.hs:10:1: Unacceptable result type in foreign declaration: (# Int#, Int#, Int# #) When checking declaration: foreign import ccall unsafe "static foo" foo :: Int# -> Int# -> Int# -> (# Int#, Int#, Int# #)