We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
should be a straightforward pPrint = id. I'm wondering if there is a particular reason behind not implementing this instance?
pPrint = id
The text was updated successfully, but these errors were encountered:
Depends on what behaviour you expect.
Going by the definition https://hackage.haskell.org/package/pretty-1.1.3.5/docs/Text-PrettyPrint-HughesPJClass.html "simlar to Show but nicer looking" I'd expect the contract for Show,
in particular, sth. like "read . show == id". Note that pPrint "foo" gives "foo", not foo.
pPrint "foo"
"foo"
foo
And I'd not expect Doc things to be readable. Things produced by pPrint, yes - but general Doc, no.
Doc
pPrint
Sorry, something went wrong.
see also #37 for other possible instances of Pretty
No branches or pull requests
should be a straightforward
pPrint = id
. I'm wondering if there is a particular reason behind not implementing this instance?The text was updated successfully, but these errors were encountered: