[GHC] #8150: Foreign export requires redundant type signature
GHC
ghc-devs at haskell.org
Thu Mar 19 23:17:09 UTC 2015
#8150: Foreign export requires redundant type signature
-------------------------------------+-------------------------------------
Reporter: evincarofautumn | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect | Unknown/Multiple
warning at compile-time | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by rwbarton):
The types aren't actually required to be the ''same'', though, as this is
accepted too (even with `-Wall`):
{{{
module FFITest where
foreign export ccall "function"
function :: IO ()
function :: IO a
function = undefined
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8150#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list