
#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 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): I think that's a good question. Neither the [https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ffi- chap.html user manual section] nor the [wiki:Commentary/PrimOps wiki commentary] discuss the interaction of `foreign import prim` with GC. Indeed my assumption would have been that `foreign import prim` was by- default unsafe, i.e. should not trigger gc. I'd have thought it made sense to allow a safe/unsafe attribute on `foreign import prim`. Simon M: any thoughts? Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13084#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler