Give the pretty-printer access to info about infixes
Respect precedence and associativity for infix ops in pprint

Fixes #1050.
Fix line breaks in display of :t at REPL
Fix interactive editing and tests

The pretty-printer fix broke parens in interactive editing.
Merge pull request #1175 from david-christiansen/pprint-assoc

Fix associativity in pretty-printer