Suggest UnliftedFFITypes when applicable
Here's an example bad error message:
Serum.hs:5:1:
Unacceptable result type in foreign declaration:
‘Word#’ cannot be marshalled in a foreign call
When checking declaration:
foreign import prim safe "static chenycopy" cheneycopy
:: Any -> Word#
We should also add something like:
To enable marshalling unlifted types, enable -XUnliftedFFITypes
Trac metadata
Trac field | Value |
---|---|
Version | 7.11 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | low |
Resolution | Unresolved |
Component | Compiler (Type checker) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |