-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Foreign.Marshal.Error.void
with a re-export of Data.Functor.void
#264
Comments
Given that the function is deprecated for a decade, I don’t see a reason not to delete it. We are way far away from Haskell Report to bother about it. |
@tomjaguarpaw @mixphix @hasufell @angerman @parsonsmatt @velveteer any more opinions about |
I would like a base that conforms to the spec or an update to the spec. Do we know why the deprecation was introduced? I don't see base in the 7.6 tree https://gitlab.haskell.org/ghc/ghc/-/tree/ghc-7.6/libraries |
I don't have a strong opinion between the three options (no change, replace with general version, remove it). |
It was deprecated by @simonmar in https://gitlab.haskell.org/ghc/ghc/-/commit/99490045a60eca41e79c2158d839a65cf454de2b, Apr 2012, but there is no explanation or discussion attached. |
Given the deprecation message I guess the reason was that the more general version of
|
I think its removal is safe by now. I think if Haskell should stick to a Report, it should be a modern one, but such a Report has not yet been written. |
I'm in favor of removal. |
@parsonsmatt @angerman @velveteer any more opinions on the preferred course of actions here? |
I'm in favor of removing it or replacing with a re-export of |
Another point to consider: A fair number of packages have But I won't sleep any less soundly if the committee still prefers to delete the function instead. |
I think we all agree that As noted in the proposal, replacing If we go for re-export, let's deprecate it, so that we do not close the door to the eventual removal of the function. |
@clyring can we make more progress on this? |
@clyring just a gentle reminder of your proposal. |
@clyring unless there is some progress by the end of August, I'll have to close the proposal as abandoned. |
Closing as abandoned, feel free to reopen when there are resources to continue. |
These two functions have identical behavior and names, but differing types. (This can cause annoying and pointless "ambiguous occurrence" errors when both are in scope.)
Data.Functor.void
is more general thanForeign.Marshal.Error.void
, but the proposed change is nevertheless a breaking one since the more general type ofData.Functor.void
can cause type inference to fail in some cases.But
Foreign.Marshal.Error.void
has been deprecated sincebase-4.6.0.0
, which shipped with ghc-7.6.1 and was released in September 2012, more than a decade ago. Potentially-affected users have had plenty of time to migrate.Side note:
Foreign.Marshal.Error.void
is specified in the Haskell2010 report; see this chapter. Otherwise I might propose to just delete this function instead of generalizing it.The text was updated successfully, but these errors were encountered: