[GHC] #13743: Colourise command output

GHC ghc-devs at haskell.org
Mon May 22 20:17:20 UTC 2017


#13743: Colourise command output
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #8809             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Description changed by Iceland_jack:

@@ -9,1 +9,1 @@
- <pre>
+ <pre class="wiki">

New description:

 Our error messages are now colourful (#10073), 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

 {{{#!html
 <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>
 }}}

--

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13743#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list