Skip to content

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