-
Notifications
You must be signed in to change notification settings - Fork 15
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
proposal: disambiguate binary data from text data #669
proposal: disambiguate binary data from text data #669
Conversation
99edf47
to
717ce60
Compare
@@ -122,6 +124,10 @@ newtype ProposalUrl = ProposalUrl | |||
{ unProposalUrl :: L.Url | |||
} deriving (Eq, Show) | |||
|
|||
newtype ProposalBinary = ProposalBinary |
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.
That's funny, neither ProposalText
or ProposalBinary
are used in reading file:
case toHash of |
I guess the next step would be to make use of those newtypes. 😄
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.
They should be defined as type level tags.
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.
They should be defined as type level tags.
Done in #683
717ce60
to
e48024b
Compare
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.
👍
@@ -122,6 +124,10 @@ newtype ProposalUrl = ProposalUrl | |||
{ unProposalUrl :: L.Url | |||
} deriving (Eq, Show) | |||
|
|||
newtype ProposalBinary = ProposalBinary |
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.
They should be defined as type level tags.
Changelog
Context
Fixes #568
I couldn't find other usages of
ProposalText
for binary data, so I think this is all there is to do to fix 568How to trust this PR
It is really harmless
Checklist