Created
June 13, 2012 20:33
-
-
Save acfoltzer/2926368 to your computer and use it in GitHub Desktop.
Listings settings for Haskell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\lstnewenvironment{code} | |
{\lstset{}% | |
\csname lst@SetFirstLabel\endcsname} | |
{\csname lst@SaveFirstLabel\endcsname} | |
\lstset{ | |
language=Haskell, | |
basicstyle=\small\ttfamily, | |
flexiblecolumns=false, | |
basewidth={0.5em,0.45em}, | |
% keywordstyle=\color{blue}, | |
% commentstyle=\color{red}, | |
literate={+}{{$+$}}1 {/}{{$/$}}1 {*}{{$*$}}1 % {=}{{$=$}}1 | |
{>}{{$>$}}1 {<}{{$<$}}1 {\\}{{$\lambda$}}1 | |
{\\\\}{{\char`\\\char`\\}}1 | |
{->}{{$\rightarrow$}}2 {>=}{{$\geq$}}2 {<-}{{$\leftarrow$}}2 | |
{<=}{{$\leq$}}2 {=>}{{$\Rightarrow$}}2 | |
{\ .}{{$\circ$}}2 {\ .\ }{{$\circ$}}2 | |
{>>}{{>>}}2 {>>=}{{>>=}}2 {=<<}{{=<<}}2 | |
{|}{{$\mid$}}1 | |
{dotdotdot}{{$\ldots$}}3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment