'foreign import prim' are marked PlaySafe by the parser
Experimenting with a foreign import prim in my code I noticed the generated core produces __pkg_ccall_GC which concerned me since I thought perhaps we were experiencing the overhead of a "safe" ccall. Reid Barton reccommended filing a report, commenting:
it looks like prim imports are marked PlaySafe by the parser, which is presumably mostly ignored, and definitely ignored during code generation. But wherever it's not ignored there could be a bug
see: http://stackoverflow.com/questions/41528208/why-is-there-no-foreign-import-prim-unsafe
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.0.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |