% $Id: haskell.sty 353 2006-05-11 21:08:06Z nomeata $
\ProvidesPackage{haskell}
\usepackage{listings}
\usepackage{xcolor}
\lstnewenvironment{code}{}{}
%    {\lstset{}%
%     \csname lst@SetFirstLabel\endcsname}
%    {\csname lst@SaveFirstLabel\endcsname}
\lstset{
  basicstyle=\ttfamily,
  keywordstyle=\normalfont\bfseries,
  identifierstyle=\bfseries,
  commentstyle=\rmfamily\color{black!70},
  texcl=true, 
  language=Haskell,
  flexiblecolumns=false,
  basewidth={0.5em,0.45em},
  extendedchars=true, 
  frame=leftline,
  numbers=left,
%  firstnumber=last,
  literate={+}{{$+$}}1 {/}{{$/$}}1 {*}{{$*$}}1 {=}{{$=$}}1
           {>}{{$>$}}1 {<}{{$<$}}1 
           {->}{{$\rightarrow$}}2 {>=}{{$\geq$}}2 {<-}{{$\leftarrow$}}2
           {<=}{{$\leq$}}2 {=>}{{$\Rightarrow$}}2 {\ .}{{ $\circ$}}2
} 
