aboutsummaryrefslogtreecommitdiff
path: root/hypsrc-test/ref/src/TemplateHaskellSplices.html
blob: 6586d299636e7db9c9481542fa2f4e9df60cc241 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<html xmlns="http://www.w3.org/1999/xhtml"
><head
  ><link rel="stylesheet" type="text/css" href="style.css"
     /><script type="text/javascript" src="highlight.js"
    ></script
    ></head
  ><body
  ><pre
    ><span class="hs-pragma"
      >{-# LANGUAGE TemplateHaskell #-}</span
      ><span
      >
</span
      ><span id="line-2"
      ></span
      ><span class="hs-keyword"
      >module</span
      ><span
      > </span
      ><span class="hs-identifier"
      >TemplateHaskellSplices</span
      ><span
      > </span
      ><span class="hs-keyword"
      >where</span
      ><span
      >
</span
      ><span id="line-3"
      ></span
      ><span
      >
</span
      ><span id="line-4"
      ></span
      ><span class="hs-keyword"
      >import</span
      ><span
      > </span
      ><span class="annot"
      ><a href="TemplateHaskellQuasiquotes.html"
	><span class="hs-identifier"
	  >TemplateHaskellQuasiquotes</span
	  ></a
	></span
      ><span
      >
</span
      ><span id="line-5"
      ></span
      ><span
      >
</span
      ><span id="line-6"
      ></span
      ><span class="hs-special"
      >$(</span
      ><span id="bar"
      ><span class="annot"
	><span class="annottext"
	  >[(Double, String)] -&gt; [(Int, String)]
</span
	  ><a href="TemplateHaskellSplices.html#bar"
	  ><span class="hs-identifier hs-type hs-var"
	    >aDecl</span
	    ></a
	  ></span
	></span
      ><span class="hs-special"
      >)</span
      ><span
      >
</span
      ><span id="line-7"
      ></span
      ><span
      >
</span
      ><span id="line-8"
      ></span
      ><span id="foo"
      ><span class="annot"
	><span class="annottext"
	  >foo :: Integer
</span
	  ><a href="TemplateHaskellSplices.html#foo"
	  ><span class="hs-identifier hs-var hs-var"
	    >foo</span
	    ></a
	  ></span
	></span
      ><span
      > </span
      ><span class="hs-glyph"
      >=</span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>Integer -&gt; Integer
forall a. a -&gt; a
</span
	><span class="hs-identifier hs-var"
	>id</span
	></span
      ><span
      > </span
      ><span class="hs-special"
      >$(</span
      ><span class="annot"
      ><span class="annottext"
	>Double
Integer
Double -&gt; Integer
Integer -&gt; Integer -&gt; Integer
forall a. Floating a =&gt; a
forall a. Num a =&gt; a -&gt; a -&gt; a
forall a b. (RealFrac a, Integral b) =&gt; a -&gt; b
+ :: forall a. Num a =&gt; a -&gt; a -&gt; a
round :: forall a b. (RealFrac a, Integral b) =&gt; a -&gt; b
pi :: forall a. Floating a =&gt; a
</span
	><span class="hs-identifier hs-var hs-var hs-var"
	>anExpression2</span
	></span
      ><span class="hs-special"
      >)</span
      ><span
      >
</span
      ><span id="line-9"
      ></span
      ></pre
    ></body
  ></html
>