Truncate expressions when printing error message
The printing depth of expressions should be limited in error messages.
I attach a file TruncateError.hs (25kB) that produces an error message of 26 MB.
In ghci
in emacs
, this error takes something in the order of magnitude of an hour to print.