compiler: rename ZonkAny to UnusedType and add pretty printing logic
ZonkAny is a hard to understand name for users who do not know how the compiler works internally. Additionally, it is confusing that ZonkAny, while being a concrete type represents a meta variable, espeically in the compiler output. This patch changes the name of ZonkAny to UnusedType which is closer to its intended semantics and adds special pretty printing logic to display this type in the same fashion the compiler displays meta variables in other places, whenever they leak from the implementation to the user.
Changes contained in this patch
MR Checklist
-
This MR solves the problem described in the following issue: #27390 (closed) -
A changelog entry was added in changelog.d/for user-facing changes (see changelog guide). If this MR does not need a changelog entry, the no-changelog label was applied. -
This MR does not make any significant changes to base, or it has an accompanying CLC proposal. -
If this MR has the potential to break user programs, the user-facing label was applied to test against head.hackage. -
All commits are either individually buildable or squashed. -
Commit messages describe what they do, referring to tickets using #NNNNNsyntax. -
Source comments describing the change were added. For larger changes notes and cross-references from the relevant places were added (as applicable). -
Testcases to the testsuite were added (as applicable). -
The users guide was updated (as applicable).