Colourise command output
Our error messages are now colourful (#10073 (closed)), can we do the same for the output of commands like :info
?
:info
has gotten bloated (I also think the context / instance head should be swapped, but that's another story), adding colour would make it easier to read
<pre class="wiki">
>>> :i Int
data <span style="color: red;font-weight: bold">Int</span> = I# E.Int# -- Defined in ‘GHC.Types’</br>
instance <span style="font-weight: bold">Eq</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘GHC.Classes’
instance <span style="font-weight: bold">Ord</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘GHC.Classes’
instance <span style="font-weight: bold">Show</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘GHC.Show’
instance <span style="font-weight: bold">Read</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘GHC.Read’
instance <span style="font-weight: bold">Enum</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘GHC.Enum’
instance <span style="font-weight: bold">Num</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘GHC.Num’
instance <span style="font-weight: bold">Real</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘GHC.Real’
instance [safe] <span style="font-weight: bold">NFData</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘Control.DeepSeq’
instance <span style="font-weight: bold">Data</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘Data.Data’
instance <span style="font-weight: bold">Bounded</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘GHC.Enum’
instance <span style="font-weight: bold">O.Outputable</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘Outputable’
instance [safe] <span style="font-weight: bold">PrintfArg</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘Text.Printf’
instance <span style="font-weight: bold">Integral</span> <span style="color: red;font-weight: bold">Int</span> -- Defined in ‘GHC.Real’
</pre>