[GHC] #13084: 'foreign import prim' are marked PlaySafe by the parser
GHC
ghc-devs at haskell.org
Sun Jan 8 02:11:35 UTC 2017
#13084: 'foreign import prim' are marked PlaySafe by the parser
-------------------------------------+-------------------------------------
Reporter: jberryman | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
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
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13084>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list