Foreign export requires redundant type signature
With a source file such as:
module FFITest where
foreign export ccall "function"
function :: IO ()
function :: IO ()
function = putStrLn "Hello, world!"
The second function :: IO ()
signature is required to satisfy -fwarn-missing-signatures
, even though a signature is already present in the foreign export
declaration, and the types are required to be the same.
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |