Skip to content

change to signature of withTempFile breaks custom Setup.hs files #1387

@mzero

Description

@mzero

Change [c3a5b96] changed the signature of withTempFile by adding an additional Bool argument. This causes custom Setup.hs files that use that function to break. See, for example, the package GLFW.

What's more, I can't see any way to cleanly handling this situation in a Setup.hs file - and still support building in environments both 1.16 and earlier, and post- 1.17 (which seems slated to include this change.)

I understand the desire for the functionality, but a new function should be added, perhaps withTempFile' or withTemporaryFile, or withTempFilePossiblyDeleting, and have the old API call it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions