[GHC] #5529: Newtypes with hidden constructors cannot be passed as FFI arguments

GHC ghc-devs at haskell.org
Sun May 1 22:49:31 UTC 2016


#5529: Newtypes with hidden constructors cannot be passed as FFI arguments
---------------------------------------+---------------------------------
        Reporter:  mikhail.vorozhtsov  |         Owner:
            Type:  bug                 |        Status:  closed
        Priority:  normal              |     Milestone:
       Component:  Compiler            |       Version:  7.3
      Resolution:  fixed               |      Keywords:
Operating System:  Unknown/Multiple    |  Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown        |     Test Case:
      Blocked By:                      |      Blocking:
---------------------------------------+---------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"a28611b14930c9fd73b0028857e1ea8c0e64a38a/ghc" a28611b/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="a28611b14930c9fd73b0028857e1ea8c0e64a38a"
 Export constructors for IntPtr and WordPtr

 This finishes what #5529 started by exporting the constructors for
 `IntPtr` and `WordPtr` from `Foreign.Ptr`, allowing them to be used in
 `foreign` declarations.

 Fixes #11983.

 Test Plan: `make TEST=T11983`

 Reviewers: simonpj, hvr, bgamari, austin

 Reviewed By: simonpj

 Subscribers: simonpj, thomie

 Differential Revision: https://phabricator.haskell.org/D2142

 GHC Trac Issues: #11983
 }}}

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


More information about the ghc-tickets mailing list