#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 Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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 22 months ago by pcapriotti

  • Difficulty set to Unknown
  • Milestone set to 7.6.1

Thanks for the report.

comment:2 Changed 22 months ago by pcapriotti

  • Component changed from libraries (other) to libraries/base
  • Resolution set to fixed
  • Status changed from new to closed

Exported ForeignPtrContents as an abstract type:

commit 661301826a1f6e4083364161484f1f124dd1850d
Author: Paolo Capriotti <p.capriotti@gmail.com>
Date:   Tue Jun 19 17:24:32 2012 +0100

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