[GHC] #8281: The impossible happened: primRepToFFIType

GHC ghc-devs at haskell.org
Sun May 21 14:36:05 UTC 2017


#8281: The impossible happened: primRepToFFIType
-------------------------------------+-------------------------------------
        Reporter:  tibbe             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  7.6.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash                              |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 > what is stopping GHCi supporting unsafe FFI calls?

 If I understand Simon correctly, the answer is probably "nothing".
 However, it's more a question of whether we want to change the semantics
 of "unsafe" foreign calls (something which would require the involvement
 of the Haskell Prime committee, if to be done properly). I can see the
 argument for `unsafe` not placing any new obligations on the compiler and
 think there's little reason to push for such a change.

 I do think, however, that it is important that we have a `unsafenogc` call
 type for the reason you describe.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8281#comment:24>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list