1 \lstdefinelanguage[Regular]{Haskell}[]{Haskell}{%
2 keywords={abstype,if,then,else,case,class,data,default,deriving,hiding,if,in,infix,infixl,infixr,import,instance,let,module,newtype,of,qualified,type,where,do,Q},
5 % {forall}{{$\forall$}}1
6 {\_}{{\raisebox{.15ex}{\_}}}1
7 {~}{{\raisebox{-.6ex}{\textasciitilde}}}1
9 {->}{{$\shortrightarrow$}}2
10 {<-}{{$\shortleftarrow$}}2
11 {=>}{{$\Rightarrow$}}2
13 {...}{{$\cdots$}}3 %chktex 11
14 {\[p|}{{$\llbracket_p$}}2
15 {\[d|}{{$\llbracket_d$}}2
16 {\[t|}{{$\llbracket_t$}}2
17 {\[e|}{{$\llbracket_e$}}2
18 {\[dsl|}{{$\llbracket_{dsl}$}}4
19 {\[bin|}{{$\llbracket_{bin}$}}4
20 {\[|}{{$\llbracket$}}1
21 {|\]}{{$\rrbracket$}}1
23 \lstdefinelanguage[Lhs2Tex]{Haskell}[Regular]{Haskell}{%
25 {e1}{{e\textsubscript{1}}}2
26 {e2}{{e\textsubscript{2}}}2
27 {e3}{{e\textsubscript{3}}}2
28 {e1p}{{e\textsubscript{1}\textsuperscript{$\prime$}}}2
29 {e2p}{{e\textsubscript{2}\textsuperscript{$\prime$}}}2
30 {eval_0}{{eval\textsubscript{0}}}5
31 {Eval_0}{{Eval\textsubscript{0}}}5
32 {Expr_0}{{Expr\textsubscript{0}}}5
33 {Lit_0}{{Lit\textsubscript{0}}}4
34 {Add_0}{{Add\textsubscript{0}}}4
35 {Sub_0}{{Sub\textsubscript{0}}}4
36 {Print_0}{{Print\textsubscript{0}}}6
37 {print_0}{{print\textsubscript{0}}}6
38 {Sem_s}{{Sem\textsubscript{s}}}4
39 {lit_s}{{lit\textsubscript{s}}}4
40 {add_s}{{add\textsubscript{s}}}4
41 {sub_s}{{sub\textsubscript{s}}}4
42 {Expr_t}{{Expr\textsubscript{t}}}5
43 {Eval_t}{{Eval\textsubscript{t}}}5
44 {E_t}{{E\textsubscript{t}}}2
45 {Printer_t}{{Printer\textsubscript{t}}}8
46 {P_t}{{P\textsubscript{t}}}2
47 {lit_t}{{lit\textsubscript{t}}}4
48 {add_t}{{add\textsubscript{t}}}4
49 {Sub_t}{{Sub\textsubscript{t}}}4
50 {sub_t}{{sub\textsubscript{t}}}4
51 {eval_1}{{eval\textsubscript{1}}}5
52 {Eval_1}{{Eval\textsubscript{1}}}5
53 {Expr_1}{{Expr\textsubscript{1}}}5
54 {Lit_1}{{Lit\textsubscript{1}}}4
55 {Add_1}{{Add\textsubscript{1}}}4
56 {Sub_1}{{Sub\textsubscript{1}}}4
57 {Print_1}{{Print\textsubscript{1}}}6
58 {print_1}{{print\textsubscript{1}}}6
59 {eval_2}{{eval\textsubscript{2}}}5
60 {Eval_2}{{Eval\textsubscript{2}}}5
61 {Expr_2}{{Expr\textsubscript{2}}}5
62 {Lit_2}{{Lit\textsubscript{2}}}4
63 {Add_2}{{Add\textsubscript{2}}}4
64 {Sub_2}{{Sub\textsubscript{2}}}4
65 {sub_2}{{sub\textsubscript{2}}}4
66 {Ext_2}{{Ext\textsubscript{2}}}4
67 {Print_2}{{Print\textsubscript{2}}}6
68 {print_2}{{print\textsubscript{2}}}6
69 {Semantics_2}{{Semantics\textsubscript{2}}}{10}
70 {eval_3}{{eval\textsubscript{3}}}5
71 {Eval_3}{{Eval\textsubscript{3}}}5
72 {Print_3}{{Print\textsubscript{3}}}6
73 {print_3}{{print\textsubscript{3}}}6
74 {opt_3}{{opt\textsubscript{3}}}4
75 {Opt_3}{{Opt\textsubscript{3}}}4
76 {HasEval_3}{{HasEval\textsubscript{3}}}8
77 {getEval_3}{{getEval\textsubscript{3}}}8
78 {EvalDict_3}{{EvalDict\textsubscript{3}}}9
79 {HasPrint_3}{{HasPrint\textsubscript{3}}}9
80 {getPrint_3}{{getPrint\textsubscript{3}}}9
81 {PrintDict_3}{{PrintDict\textsubscript{3}}}{10}
82 {HasOpt_3}{{HasOpt\textsubscript{3}}}7
83 {getOpt_3}{{getOpt\textsubscript{3}}}7
84 {OptDict_3}{{OptDict\textsubscript{3}}}8
85 {Expr_3}{{Expr\textsubscript{3}}}5
86 {Lit_3}{{Lit\textsubscript{3}}}4
87 {Add_3}{{Add\textsubscript{3}}}4
88 {Sub_3}{{Sub\textsubscript{3}}}4
89 {sub_3}{{sub\textsubscript{3}}}4
90 {Ext_3}{{Ext\textsubscript{3}}}4
91 {eval_4}{{eval\textsubscript{4}}}5
92 {Eval_4}{{Eval\textsubscript{4}}}5
93 {Print_4}{{Print\textsubscript{4}}}5
94 {print_4}{{print\textsubscript{4}}}5
95 {opt_4}{{opt\textsubscript{4}}}4
96 {Opt_4}{{Opt\textsubscript{4}}}4
97 {HasEval_4}{{HasEval\textsubscript{4}}}8
98 {getEval_4}{{getEval\textsubscript{4}}}8
99 {EvalDict_4}{{EvalDict\textsubscript{4}}}9
100 {HasPrint_4}{{HasPrint\textsubscript{4}}}9
101 {getPrint_4}{{getPrint\textsubscript{4}}}9
102 {PrintDict_4}{{PrintDict\textsubscript{4}}}{10}
103 {HasOpt_4}{{HasOpt\textsubscript{4}}}7
104 {getOpt_4}{{getOpt\textsubscript{4}}}7
105 {OptDict_4}{{OptDict\textsubscript{4}}}8
106 {OptPrintDict_4}{{OptPrintDict\textsubscript{4}}}{14}
107 {OPD_4}{{OPD\textsubscript{4}}}4
108 {Expr_4}{{Expr\textsubscript{4}}}5
109 {Lit_4}{{Lit\textsubscript{4}}}4
110 {Add_4}{{Add\textsubscript{4}}}4
111 {Sub_4}{{Sub\textsubscript{4}}}4
112 {SubLoop_4}{{SubLoop\textsubscript{4}}}8
113 {sub_4}{{sub\textsubscript{4}}}4
114 {Neg_4}{{Neg\textsubscript{4}}}4
115 {NegLoop_4}{{NegLoop\textsubscript{4}}}8
116 {neg_4}{{neg\textsubscript{4}}}4
117 {Ext_4}{{Ext\textsubscript{4}}}4
118 {eval_g}{{eval\textsubscript{g}}}5
119 {Eval_g}{{Eval\textsubscript{g}}}5
120 {Print_g}{{Print\textsubscript{g}}}6
121 {print_g}{{print\textsubscript{g}}}6
122 {opt_g}{{opt\textsubscript{g}}}4
123 {Opt_g}{{Opt\textsubscript{g}}}4
124 {HasEval_g}{{HasEval\textsubscript{g}}}8
125 {getEval_g}{{getEval\textsubscript{g}}}8
126 {EvalDict_g}{{EvalDict\textsubscript{g}}}9
127 {HasPrint_g}{{HasPrint\textsubscript{g}}}9
128 {getPrint_g}{{getPrint\textsubscript{g}}}9
129 {PrintDict_g}{{PrintDict\textsubscript{g}}}{10}
130 {HasOpt_g}{{HasOpt\textsubscript{g}}}7
131 {getOpt_g}{{getOpt\textsubscript{g}}}7
132 {OptDict_g}{{OptDict\textsubscript{g}}}8
133 {OptPrintDict_g}{{OptPrintDict\textsubscript{g}}}{14}
134 {OPD_g}{{OPD\textsubscript{g}}}4
135 {Expr_g}{{Expr\textsubscript{g}}}5
136 {Lit_g}{{Lit\textsubscript{g}}}4
137 {Add_g}{{Add\textsubscript{g}}}4
138 {Sub_g}{{Sub\textsubscript{g}}}4
139 {SubLoop_g}{{SubLoop\textsubscript{g}}}8
140 {sub_g}{{sub\textsubscript{g}}}4
141 {Neg_g}{{Neg\textsubscript{g}}}4
142 {NegLoop_g}{{NegLoop\textsubscript{g}}}8
143 {neg_g}{{neg\textsubscript{g}}}4
144 {NotLoop_g}{{NotLoop\textsubscript{g}}}8
145 {Not_g}{{Not\textsubscript{g}}}4
146 {not_g}{{not\textsubscript{g}}}4
147 {EqLoop_g}{{EqLoop\textsubscript{g}}}7
148 {Eq_g}{{Eq\textsubscript{g}}}3
149 {eq_g}{{eq\textsubscript{g}}}3
150 {Ext_g}{{Ext\textsubscript{g}}}4