Opened 5 years ago

Closed 5 years ago

#7012 closed bug (fixed)

ForeignPtrContents isn't exported

Reported by: rl Owned by:
Priority: normal Milestone: 7.6.1
Component: libraries/base Version: 7.4.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Other Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


GHC.ForeignPtr doesn't export ForeignPtrContents. This means that this function can't be given a signature in user code:

f (ForeignPtr _ x) = x

ForeignPtrContents should be exported, at least abstractly, although exporting the constructors, too, would be useful for low-level code.

Change History (2)

comment:1 Changed 5 years ago by pcapriotti

difficulty: Unknown
Milestone: 7.6.1

Thanks for the report.

comment:2 Changed 5 years ago by pcapriotti

Component: libraries (other)libraries/base
Resolution: fixed
Status: newclosed

Exported ForeignPtrContents as an abstract type:

commit 661301826a1f6e4083364161484f1f124dd1850d
Author: Paolo Capriotti <>
Date:   Tue Jun 19 17:24:32 2012 +0100

    Export ForeignPtrContents in GHC.ForeignPtr (#7012)
Note: See TracTickets for help on using tickets.