While preparing my first post here I found that there was no default syntax highlighting for Haskell. Among several solutions suggested me by the web I’ve eventually chosen GNU Source-highlight coupled with sed. Here is an example of what you can get with it:
qsort :: (Ord a) => [a] -> [a] qsort  =  qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++ qsort (filter (>= x) xs)
After GNU Source-highlight is installed (usually from your linux distro’s repositories), you can run the following command from terminal to generate ready-to-publish html out of YourHaskellFile.hs:
source-highlight -i YourHaskellFile.hs | sed -e '1,/-->/d' -e 's/<pre>/<pre style="overflow: auto;">/'
This will print the output right into the terminal so you can copy-paste it into your blog.