Personal tools

GHCi in colour

From HaskellWiki

Revision as of 07:37, 14 December 2006 by DonStewart (Talk | contribs)

Jump to: navigation, search

This page documents efforts to colourise GHCi output.


1 Example


Or a type error:


Output like this would be the result of running, for example:

   ghci --colour

and would appear in the console/xterm as ansi terminal coloured output.

2 Implementation

2.1 Using HsColour

An existing tool, HsColour, could be modified to operate interactively.

2.2 GuiHaskell

Neil Mitchell has a prototype gui haskell wrapper, based on gtk. Does this contain a reasonable ghci wrapper we could steal?

If you have an idea of how to do this nicely, add your proposal here.