-
Notifications
You must be signed in to change notification settings - Fork 87
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
Describe the elements of Error_Protocol's three-tuple #460
Describe the elements of Error_Protocol's three-tuple #460
Conversation
I agree that this tuple is not well-documented. |
That sounds reasonable to me. Happy to give it a try and see what happens. |
This makes the value more self-documenting and removes the need to translate between the two types in some cases.
@kazu-yamamoto I pushed some more changes. I left the new haddock since it still seems more or less appropriate, but let me know what you think. One thing I noticed while making this change is that there is exactly one use of |
@exarkun I agree with you. Would you introduce |
Re-use `Error_Protocol` for fatal cases and introduce `Error_Protocol_Warning` for non-fatal cases.
@kazu-yamamoto I added |
May I ask one more thing? | Error_Protocol (String, AlertDescription) I don't know why a tuple is used here. Would you try the following definition? | Error_Protocol String AlertDescription We should check |
I also don't know why these are tuples. This change seems reasonable (though, uggg, updating all those call sites again...). |
@kazu-yamamoto Pushed those changes (fwiw, I tried |
The previous breaking change (#457) effected:
But this breaking change effects only |
Merged. How soon do you want to have version 1.9.0? |
Thanks! I have no problem waiting - this was mostly a good excuse to try contributing a real (if minor) improvement to some project in my stack for the practice and to try to give some small bit back to the ecosystem. Thank you for guiding me through the process. |
As you may know, a new version has been released. |
-- elements of the tuple give (freeform text description, structured | ||
-- error description). | ||
| Error_Protocol_Warning String AlertDescription | ||
-- ^ A non-fatal error condition was encountered at a low level at a low |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at a low level at a low level.
Probably one low level to much ;)
I was writing automated tests for some error handling cases in library that uses
Network.TLS
and found it unclear what all of the fields in this tuple (especially theBool
) meant. Here's an attempt at describing them.