Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,322
    • Issues 4,322
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 362
    • Merge Requests 362
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #13743

Closed
Open
Opened May 22, 2017 by Icelandjack@IcelandjackReporter

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>
Edited Mar 10, 2019 by Icelandjack
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#13743