nickel icon indicating copy to clipboard operation
nickel copied to clipboard

Make the pretty printer configurable

Open vkleen opened this issue 2 years ago • 0 comments

With #1262 we're now using the pretty printer for printing evaluated terms in the REPL. As @yannham pointed out, that means in particular that we echo entire function definitions back to the user if something evaluates to a function in the REPL. We should instead print abbreviated placeholders for these cases, such as <function>.

In other place, we do want to print full terms, however. The natural solution would to make the Pretty instances for Term for configurable, for instance implementing them for something like (Term, PrettyConfiguration).

vkleen avatar Jun 09 '23 08:06 vkleen