Skip to content
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

Remove dead occurrences of cygwin32_HOST_OS. #193

Merged
merged 1 commit into from
Jun 6, 2016
Merged

Remove dead occurrences of cygwin32_HOST_OS. #193

merged 1 commit into from
Jun 6, 2016

Conversation

mboes
Copy link
Contributor

@mboes mboes commented Jun 5, 2016

As noted recently on the mailing lists in the context of the containers
package, there's not much point in retaining support for versions we
cannot test. Cygwin has been unsupported by GHC for some time now. CI
currently tests network all the way back to GHC 7.0.4. But even in that
version, cygwin32_HOST_OS is never set. So effectively any occurrence
of || defined(cygwin32_HOST_OS) or && !defined(cygwin32_HOST_OS) is
equivalent to || FALSE and && TRUE, respectively. On all platforms
on all tested versions of GHC.

This patch removes these occurrences, thus simplifying, making
consistent, less error prone, and more readable the conditionals testing
for whether the current platform is Windows.

As noted recently on the mailing lists in the context of the containers
package, there's not much point in retaining support for versions we
cannot test. Cygwin has been unsupported by GHC for some time now. CI
currently tests network all the way back to GHC 7.0.4. But even in that
version, `cygwin32_HOST_OS` is never set. So effectively any occurrence
of `|| defined(cygwin32_HOST_OS)` or `&& !defined(cygwin32_HOST_OS)` is
equivalent to `|| FALSE` and `&& TRUE`, respectively. On all platforms
on all tested versions of GHC.

This patch removes these occurrences, thus simplifying, making
consistent, less error prone, and more readable the conditionals testing
for whether the current platform is Windows.
@eborden eborden added the Windows label Jun 5, 2016
@eborden
Copy link
Collaborator

eborden commented Jun 5, 2016

Fantastic! I don't see any reason not to merge this. Any objections @kazu-yamamoto?

@kazu-yamamoto kazu-yamamoto merged commit b00671a into haskell:master Jun 6, 2016
@kazu-yamamoto
Copy link
Collaborator

No objection and I have merged this pull request.

@mboes Thank you for your contribution!

@eborden eborden mentioned this pull request Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants