[GHC] #10460: Allow foreign prim to return Any
GHC
ghc-devs at haskell.org
Mon Jun 1 16:56:15 UTC 2015
#10460: Allow foreign prim to return Any
-------------------------------------+-------------------------------------
Reporter: ezyang | Owner: ezyang
Type: feature request | Status: new
Priority: normal | Milestone: 7.12.1
Component: Compiler (Type | Version: 7.11
checker) | Keywords:
Resolution: | Architecture:
Operating System: Unknown/Multiple | Unknown/Multiple
Type of failure: GHC rejects | Test Case:
valid program | Blocking:
Blocked By: | Differential Revisions:
Related Tickets: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Sorry I think I was mixed up. A `foreign prim` is always `unsafe`, isn't
it. And you are only proposing to add `Any` as a possible result for
`foreign prim` not for other `foreign` declarations, correct?
So my third bullet is irrelevant.
There's a missing close-paren in the (welcome) doc fix.
Simon
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10460#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list