I find myself writing a conference paper that will feature a couple Haskell snippets.
Short of re-doing everything in Literate Haskell or pulling in pandoc, what’s a good reference for nice-looking lstlistings (LaTeX package for typesetting code) defaults ?
When using listings, it is pretty common practice to configure settings for each specific paper, adding/removing keywords and setting options to make the code in that paper look as desired. You can check the source definition for the Haskell “driver” (based on Haskell98) in the lstdrvrs.pdf documentation to better understand the defaults.
Searching for recent examples, I found the following, which uses lstset:
Note that the minted package is a popular alternative to listings that uses Pygments for syntax highlighting. You might want to consider it, particularly if you want more sophisticated syntax highlighting than listings can provide.
Use lhs2tex. The most beautiful typeset Haskell you will see. It’s with the conversion to literate Haskell. Check out my cheat sheet (cheatsheet.codeslower.com) and thesis (mil.codeslower.com) to see what it can do.