Personal tools

GHCi in colour

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(ui)
Line 8: Line 8:
   
 
[[Image:Coloured-error.png]]
 
[[Image:Coloured-error.png]]
  +
  +
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.
   
 
== Implementation ==
 
== Implementation ==
Line 15: Line 21:
 
An existing tool, [http://www.cs.york.ac.uk/fp/darcs/hscolour/ HsColour],
 
An existing tool, [http://www.cs.york.ac.uk/fp/darcs/hscolour/ HsColour],
 
could be modified to operate interactively.
 
could be modified to operate interactively.
  +
  +
=== GuiHaskell ===
  +
  +
Neil Mitchell has a prototype [http://www-users.cs.york.ac.uk/~ndm/projects/guihaskell.php gui haskell] wrapper, based on gtk. Does this contain a reasonable ghci wrapper we could steal?
   
   

Revision as of 07:37, 14 December 2006

This page documents efforts to colourise GHCi output.

Contents

1 Example

   Colour-ghci.png

Or a type error:

   Coloured-error.png

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.