[GHC] #9163: Ptr should have a phantom role

GHC ghc-devs at haskell.org
Tue Jul 10 01:15:18 UTC 2018


#9163: Ptr should have a phantom role
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:  7.10.1
       Component:  Compiler          |              Version:  7.8.2
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
                                     |  roles/should_compile/Roles2
      Blocked By:                    |             Blocking:
 Related Tickets:  #9164             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 comment:38 may indeed work. But `Ptr` is baked into the compiler in
 places, so you'll have to tread carefully if you update it. Specifically,
 look at `normaliseFfiType'`.

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


More information about the ghc-tickets mailing list