-
Notifications
You must be signed in to change notification settings - Fork 710
Use 'ShortText' as internal representation of PackageName
#3913
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
Conversation
-- Invalid data will be decoded as the replacement character (@U+FFFD@) | ||
-- | ||
-- See also 'encodeStringUtf8' | ||
decodeStringUtf8 :: [Word8] -> String |
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.
could this leave somewhere in .Utils.
or Compat``? I'll need exactly the same functions in
parsec-parser` too
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.
@phadej I had to move it out of .Simple.Utils
due to cyclic deps (and because non .Simple
modules shall not depend on .Simple
modules); I'm open to a new home for it... please suggest a concrete alternative place for those
Maybe simply introduce a non-exposed Distribution.Utils
(which is partly reexported by Distribution.Simple.Utils
)? Or we could just reexport {en,de}codeStringUtf8
in Distribution.Simple.Utils
?
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.
as I said on IRC, somewhere out of the D.Simple
, as parsec is outside too.
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.
Bikeshedding: I'd move Distribution.ShortText
to Distribution.Utils.ShortText
. And I guess we can create Distribution.Utils.String
for decodeStringUtf8
.
96d7249
to
6281ba9
Compare
Looks good, let's merge once it's green! |
This moves `String`/UTF8 conversion helpers to Distribution.Utils.String
6281ba9
to
65d4df0
Compare
Just for the record:
after this patch:
|
No description provided.