-
Notifications
You must be signed in to change notification settings - Fork 0
Use prettyprinter for annotateFailureReason #265
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
I attempted do this is the least disruptive way. At this point, there's almost no value in prettyprinter being used. What I've done amounts to switching `T.pack` for `pretty` and `T.intercate "\n"` for `vsep`, and adding a pretty pointless layout and render step. However, I plan to take more advantage in future commits.
And don't use tabs.
|
This is part of #203, I decided to work on it in place because that's more fun than moving it. |
| , " * Annotation @Text \"Visibility is poor. Visability is poor. Visability is" | ||
| , " poor. Visability is poor. Visability is poor. Visability is poor. Visability" | ||
| , " is poor. Visability is poor. Visability is poor. Visability is poor." | ||
| , " Visability is poor\"" |
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 mentioned in the commit, using a prettyprinter for this case isn't really doing a whole lot. If it weren't already a transitive dependency, I'd be hesitant to pull it in just for this. This smart reflow is really the only thing we're getting from it, so at least there's something.
| let-style: mixed | ||
| in-style: left-align | ||
| single-constraint-parens: never # ignored until v12 / ghc-9.6 | ||
| trailing-section-operators: false # needs fourmolu >= v0.17 |
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.
This made the diff a little noisier; sorry I didn't do a better job isolating it.
Tweak fourmolu
1cb7a3c
Use prettyprinter for annotateFailureReason
c71984f
I attempted do this is the least disruptive way. At this point, there's
almost no value in prettyprinter being used. What I've done amounts to
switching
T.packforprettyandT.intercate "\n"forvsep, andadding a pretty pointless layout and render step.
However, I plan to take more advantage in future commits.
Neatly align listed annotations
c336c14
And don't use tabs.
Use hardline, not literal
7ecb236