This would look less convoluted if we used some kind of interpolation.
Interpolation would also make the code less prone to errors such as forgetting to open/close a single quote '.
I haven't checked if these quasiquotes produced by nyan-interpolation could be embedded in Builder expressions (I suspect they can). If so, we should also investigate whether we could use it to simplify CLI.PrettyPrint.
Clarification and motivation
In
Main.hs
, we construct user-facing messages such as:This would look less convoluted if we used some kind of interpolation. Interpolation would also make the code less prone to errors such as forgetting to open/close a single quote
'
.We recently released
nyan-interpolation
, let's use it here.I haven't checked if these quasiquotes produced by
nyan-interpolation
could be embedded inBuilder
expressions (I suspect they can). If so, we should also investigate whether we could use it to simplifyCLI.PrettyPrint
.Acceptance criteria
We've used interpolation where possible.