<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <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-keyword" >module</span ><span > </span ><span class="hs-identifier" >Literals</span ><span > </span ><span class="hs-keyword" >where</span ><span > </span ><a name="line-2" ></a ><span > </span ><a name="line-3" ></a ><span > </span ><a name="line-4" ></a ><span class="hs-identifier" >str</span ><span > </span ><span class="hs-glyph" >::</span ><span > </span ><span class="hs-identifier hs-type" >String</span ><span > </span ><a name="line-5" ></a ><a name="str" ><a href="Literals.html#str" ><span class="hs-identifier" >str</span ></a ></a ><span > </span ><span class="hs-glyph" >=</span ><span > </span ><span class="hs-string" >"str literal"</span ><span > </span ><a name="line-6" ></a ><span > </span ><a name="line-7" ></a ><span class="hs-identifier" >num</span ><span > </span ><span class="hs-glyph" >::</span ><span > </span ><span class="hs-identifier hs-type" >Num</span ><span > </span ><a href="#local-0" ><span class="hs-identifier hs-type" >a</span ></a ><span > </span ><span class="hs-glyph" >=></span ><span > </span ><a href="#local-0" ><span class="hs-identifier hs-type" >a</span ></a ><span > </span ><a name="line-8" ></a ><a name="num" ><a href="Literals.html#num" ><span class="hs-identifier" >num</span ></a ></a ><span > </span ><span class="hs-glyph" >=</span ><span > </span ><span class="hs-number" >0</span ><span > </span ><span class="hs-operator hs-var" >+</span ><span > </span ><span class="hs-number" >1</span ><span > </span ><span class="hs-operator hs-var" >+</span ><span > </span ><span class="hs-number" >1010011</span ><span > </span ><span class="hs-operator hs-var" >*</span ><span > </span ><span class="hs-number" >41231</span ><span > </span ><span class="hs-operator hs-var" >+</span ><span > </span ><span class="hs-number" >12131</span ><span > </span ><a name="line-9" ></a ><span > </span ><a name="line-10" ></a ><span class="hs-identifier" >frac</span ><span > </span ><span class="hs-glyph" >::</span ><span > </span ><span class="hs-identifier hs-type" >Fractional</span ><span > </span ><a href="#local-0" ><span class="hs-identifier hs-type" >a</span ></a ><span > </span ><span class="hs-glyph" >=></span ><span > </span ><a href="#local-0" ><span class="hs-identifier hs-type" >a</span ></a ><span > </span ><a name="line-11" ></a ><a name="frac" ><a href="Literals.html#frac" ><span class="hs-identifier" >frac</span ></a ></a ><span > </span ><span class="hs-glyph" >=</span ><span > </span ><span class="hs-number" >42.0000001</span ><span > </span ><a name="line-12" ></a ><span > </span ><a name="line-13" ></a ><span class="hs-identifier" >list</span ><span > </span ><span class="hs-glyph" >::</span ><span > </span ><span class="hs-special" >[</span ><span class="hs-special" >[</span ><span class="hs-special" >[</span ><span class="hs-special" >[</span ><a href="#local-0" ><span class="hs-identifier hs-type" >a</span ></a ><span class="hs-special" >]</span ><span class="hs-special" >]</span ><span class="hs-special" >]</span ><span class="hs-special" >]</span ><span > </span ><a name="line-14" ></a ><a name="list" ><a href="Literals.html#list" ><span class="hs-identifier" >list</span ></a ></a ><span > </span ><span class="hs-glyph" >=</span ><span > </span ><span class="hs-special" >[</span ><span class="hs-special" >[</span ><span class="hs-special" >]</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >[</span ><span class="hs-special" >[</span ><span class="hs-special" >]</span ><span class="hs-special" >]</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >[</span ><span class="hs-special" >[</span ><span class="hs-special" >[</span ><span class="hs-special" >]</span ><span class="hs-special" >]</span ><span class="hs-special" >]</span ><span class="hs-special" >]</span ><span > </span ><a name="line-15" ></a ><span > </span ><a name="line-16" ></a ><span class="hs-identifier" >pair</span ><span > </span ><span class="hs-glyph" >::</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >)</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >)</span ><span > </span ><a name="line-17" ></a ><a name="pair" ><a href="Literals.html#pair" ><span class="hs-identifier" >pair</span ></a ></a ><span > </span ><span class="hs-glyph" >=</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >)</span ><span class="hs-special" >,</span ><span > </span ><span class="hs-special" >(</span ><span class="hs-special" >)</span ><span class="hs-special" >)</span ><span > </span ><a name="line-18" ></a ></pre ></body ></html >