Hi Pete
> As part of my learning experience, I think I want to see if I can
> write a haskell pastebin that does proper syntax highlighting.
> Someone in #haskell suggested that I use just a lexer because using a
> parser is overkill. However, I can't make this assessment until I see
> how to use the parser and the information it can supply.
You might want to check out HsColour, which does pretty much exactly
what you asked for:
http://www.cs.york.ac.uk/fp/darcs/hscolour/
Thanks
Neil