After doing some research on the interweb - I finally made the switch to minted. As I need to document Haskell with Latex, I created the following listing according to examples found on this page. (thx btw!)
\documentclass[a4paper]{report}
\usepackage[left=2.5cm,right=2.5cm]{geometry}
\usepackage{listings}
\usepackage{tcolorbox}
\usepackage{minted}
\tcbuselibrary{minted,skins}
\newtcblisting{haskellcode}[1][]{
listing engine=minted,
colback=bg,
colframe=black!70,
listing only,
minted style=colorful,
minted language=haskell,
minted options={linenos=true,numbersep=3mm,texcl=true,#1},
left=5mm,enhanced,
overlay={\begin{tcbclipinterior}\fill[black!25] (frame.south west)
rectangle ([xshift=5mm]frame.north west);\end{tcbclipinterior}}
}
\definecolor{bg}{rgb}{0.9,0.9,0.9}
\begin{document}
\begin{haskellcode}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
import Yesod
data HelloWorld = HelloWorld
mkYesod "HelloWorld" [parseRoutes|
/ HomeR GET
|]
instance Yesod HelloWorld
getHomeR :: Handler Html
getHomeR = defaultLayout [whamlet|Hello World!|]
main :: IO ()
main = warp 3000 HelloWorld
\end{haskellcode}
\end{document}
Unfortunately I strugle to get it to work.
\begin{haskellcode}
%{-# LANGUAGE OverloadedStrings #-}
%{-# LANGUAGE QuasiQuotes #-}
%{-# LANGUAGE TemplateHaskell #-}
%{-# LANGUAGE TypeFamilies #-}
import Yesod
data HelloWorld = HelloWorld
\end{haskellcode}
This example works like a charm, but as soon as I remove the comment %-operator, I get tonns of errors. In my opinion there is a problem, that pdftex is trying to parse the "{}"-brackets.
Many thanks for your help :).
Martin