{"action":"closed","issue":{"url":"https://api.github.com/repos/snoyberg/http-client/issues/347","repository_url":"https://api.github.com/repos/snoyberg/http-client","labels_url":"https://api.github.com/repos/snoyberg/http-client/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/snoyberg/http-client/issues/347/comments","events_url":"https://api.github.com/repos/snoyberg/http-client/issues/347/events","html_url":"https://github.com/snoyberg/http-client/issues/347","id":316044712,"node_id":"MDU6SXNzdWUzMTYwNDQ3MTI=","number":347,"title":"IPv6 host address in Request record","user":{"login":"e15b1c8b","id":38542090,"node_id":"MDQ6VXNlcjM4NTQyMDkw","avatar_url":"https://avatars0.githubusercontent.com/u/38542090?v=4","gravatar_id":"","url":"https://api.github.com/users/e15b1c8b","html_url":"https://github.com/e15b1c8b","followers_url":"https://api.github.com/users/e15b1c8b/followers","following_url":"https://api.github.com/users/e15b1c8b/following{/other_user}","gists_url":"https://api.github.com/users/e15b1c8b/gists{/gist_id}","starred_url":"https://api.github.com/users/e15b1c8b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e15b1c8b/subscriptions","organizations_url":"https://api.github.com/users/e15b1c8b/orgs","repos_url":"https://api.github.com/users/e15b1c8b/repos","events_url":"https://api.github.com/users/e15b1c8b/events{/privacy}","received_events_url":"https://api.github.com/users/e15b1c8b/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-19T21:18:59Z","updated_at":"2018-06-28T10:07:26Z","closed_at":"2018-06-28T10:07:25Z","author_association":"NONE","body":"In the Network.HTTP.Client.Types module there is a record \"Request\". This record has a field \", hostAddress :: Maybe HostAddress\". The HostAddress type is defined in Network.Socket and is really just a wrapper around Word32. HostAddress is not capable of dealing with IPv6.\r\n\r\nFollowing Network.Socket style there is an additional type HostAddress6 which is a (Word32, Word32, Word32, Word32). If this pattern was followed a record field could be added \"hostAddress6 :: Maybe HostAddress6\". Alternatively we could use a different representation available to represent either possibility. This would change to \"hostAddress :: Maybe OtherIPType\".\r\n\r\nIf such a change (either style) would be accepted I will make a PR to update the record and the various other parts of the code that would be effected. I am aware that \"hostAddress\" is ignored most of the time right now. Later in another PR I would like to update various backends to actually use the pre resolved addresses. Any general comments on the idea?\r\n\r\nThanks! -e15b1c8b"}}
{"actor":{"display_login":"snoyberg"}}