[GHC] #9163: Ptr should have a phantom role
GHC
ghc-devs at haskell.org
Tue Jun 3 17:00:12 UTC 2014
#9163: Ptr should have a phantom role
-------------------------------------+------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by rwbarton):
Replying to [comment:11 goldfire]:
> Helpful comments, rwbarton. Is the same true for `FunPtr`? I would
assume so.
My knee-jerk reaction is "not sure"; I am thinking that while the normal
way to consume a `Ptr` is to `peek` and `poke` it, the normal way to
consume a `FunPtr` is with a `foreign import ccall "dynamic"` wrapper, and
I'm not sure they are obviously analogous situations.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9163#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list