#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: #9164 -------------------------------------+------------------------------------ Comment (by Joachim Breitner <mail@…>): In [changeset:"5bdbd510a78f0c17d702fa9399cc0501cfd00fac/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="5bdbd510a78f0c17d702fa9399cc0501cfd00fac" Make Ptr's parameter phantom and implement castPtr with coerce, which gives 12% less allocation in reverse-complem 7.3% less allocation in fasta. Binary sizes fell 0.1%. as reported and discussed in #9163. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9163#comment:22> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler