#5610: Improve "Unacceptable argument type in foreign declaration" error message
--------------------------------+-------------------------------------------
Reporter: bgamari | Owner: simonmar
Type: bug | Status: closed
Priority: high | Milestone: 7.4.1
Component: libraries (other) | Version: 7.3
Resolution: fixed | Keywords: zlib
Testcase: | Blockedby:
Difficulty: | Os: Linux
Blocking: | Architecture: x86_64 (amd64)
Failure: None/Unknown |
--------------------------------+-------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => fixed
Comment:
We changed tack on this one:
commit c6b0fd62fc715aa6c666eb8afe09073ac7b87a83
{{{
Author: Simon Marlow <[email protected]>
Date: Thu Nov 24 14:04:23 2011 +0000
Relax the restriction on using abstract newtypes in FFI declarations.
Given the high impact of this change, we decided to back off and make
abstract newtypes give a warning for one release, before we make it an
error in 7.6.1.
Codec/Compression/Zlib/Stream.hsc:884:1:
Warning: newtype `CInt' is used in an FFI declaration,
but its constructor is not in scope.
This will become an error in GHC 7.6.1.
When checking declaration:
foreign import ccall unsafe "static zlib.h deflate" c_deflate
:: StreamState -> CInt -> IO CInt
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5610#comment:6>
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