#1357: warning for possible missing & in foreign import
--------------------------------+-------------------------------------------
Reporter: Frederik | Owner:
Type: feature request | Status: reopened
Priority: normal | Milestone: 6.10
Component: Compiler | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Os: Unknown | Testcase:
Architecture: Unknown |
--------------------------------+-------------------------------------------
Changes (by simonmar):
* difficulty: Unknown => Easy (1 hr)
* resolution: invalid =>
* milestone: => 6.10
* priority: high => normal
* summary: trouble using newForeignPtrEnv => warning for possible
missing & in foreign import
* status: closed => reopened
* type: bug => feature request
Comment:
It's an easy mistake to make - I remember doing exactly the same thing
myself once, and having to debug it using gdb.
Perhaps we should have a warning for
{{{
foreign import ccall "f" f :: FunPtr a
}}}
on the grounds that you ''probably'' (but not necessarily) wanted `"&f"`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1357>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs