Ticket #7012 (closed bug: fixed)

Opened 11 months ago

Last modified 11 months ago

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

Changed 11 months ago by pcapriotti

  • difficulty set to Unknown
  • milestone set to 7.6.1

Thanks for the report.

Changed 11 months ago by pcapriotti

  • status changed from new to closed
  • resolution set to fixed
  • component changed from libraries (other) to libraries/base

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.