-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
pPrint prints unexpected characters for unprintable string contents #64
Comments
@expipiplus1 I think that some escaped characters in a string get replaced with the literal character. This is good for things like When I tried this in the terminal with the latest version of pretty-simple (3.2.2.0), I got the following:
This seems to me like it is roughly doing the correct thing here. It appears to be printing all printable characters, and using escape sequences for non-printable characters. I'm going to close this, since it appears that pretty-simple is working correctly here, but if you want to try to argue that it is not actually working correctly, or there is a better way for it to work, it is possible I could be convinced. Feel free to comment below or send a PoC PR. |
My issue is that in my case the ByteString is just some binary blob data and More generally though, the current behaviour disallows a valid workflow of
Currently the programmer has to manually undo any newline's after copying. Love the library in general BTW :) |
@expipiplus1 Ah, I think I can understand what you're asking here. Unfortunately, I'm not sure exactly how this should be handled, but if you had some good ideas for how to handle this, please feel free to open a new issue. If you're interested, maybe you could add an option about whether or not to show whitespace like Also, there is an option called
Although, things like |
For example
I would expect
pPrint (x :: Bytestring)
to bex
The text was updated successfully, but these errors were encountered: