[GHC] #11983: Can't use IntPtr or WordPtr in a foreign import
GHC
ghc-devs at haskell.org
Sun May 1 22:49:31 UTC 2016
#11983: Can't use IntPtr or WordPtr in a foreign import
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: RyanGlScott
Type: bug | Status: patch
Priority: normal | Milestone: 8.2.1
Component: Compiler (FFI) | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: #3008, #5529 | Differential Rev(s): Phab:D2142
Wiki Page: |
-------------------------------------+-------------------------------------
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/11983#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list