 <p>I'm a total Haskell nube and this is a shot in the dark, but couldn't you use hscolour to output the code as HTML and then do something along the lines of <em>cabal haddock --executables --hyperlink-source</em> to include the colorized HTML?</p>