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

Use network-2.7 for more informative "connection failed" errors #586

Merged
merged 2 commits into from
Feb 1, 2019

Conversation

neongreen
Copy link
Contributor

service: Network.Socket.getAddrInfo: does not exist (Name does not resolve)

Starting from network-2.7, getAddrInfo also prints the host that it was trying to connect to.

@neongreen
Copy link
Contributor Author

Warning: ~100 packages will be rebuilt after this is merged.

@neongreen
Copy link
Contributor Author

Perhaps it's better to leave it until the evening so that alpine-builder can be rebuilt promptly.

@@ -1,6 +1,8 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}

{-# OPTIONS_GHC -Wno-deprecations #-} -- for Network.BSD

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't you resolve the deprecations?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Network.BSD was moved to network-bsd, which is not deprecated but is network >= 3.0 only. The ecosystem hasn't moved to network-3.0 yet so we can't use it. Tracking issue: commercialhaskell/stackage#4312

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that those deprecations are kinda "we're going to move it out", not "don't use it because better options are available".

@neongreen
Copy link
Contributor Author

Tests are passing now.

@neongreen
Copy link
Contributor Author

By golly! Not 1️⃣ but 2️⃣ green circles.

Then I will merge this one in the evening today and rebuild alpine-builder.

@neongreen neongreen merged commit 9cbb237 into develop Feb 1, 2019
@neongreen neongreen deleted the network branch February 1, 2019 21:55
This was referenced Feb 14, 2019
@neongreen neongreen mentioned this pull request Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants