showLitChar should use Array not list
Currently GHC.Show.showLitChar relies on a list to lookup names of unprintable characters. This should rather be an array to avoid O(n) indexing.
Edited by Ben Gamari
Currently GHC.Show.showLitChar relies on a list to lookup names of unprintable characters. This should rather be an array to avoid O(n) indexing.