blob: f52db4ab4ee0b6e1f74944a4a77c494062d85ea5 (
plain) (
tree)
|
|
<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"
>Identifiers</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"
>foo</span
><span class="hs-special"
>,</span
><span
> </span
><span class="hs-identifier"
>bar</span
><span class="hs-special"
>,</span
><span
> </span
><span class="hs-identifier"
>baz</span
><span
> </span
><span class="hs-glyph"
>::</span
><span
> </span
><span class="hs-identifier hs-type"
>Int</span
><span
> </span
><span class="hs-glyph"
>-></span
><span
> </span
><span class="hs-identifier hs-type"
>Int</span
><span
> </span
><span class="hs-glyph"
>-></span
><span
> </span
><span class="hs-identifier hs-type"
>Int</span
><span
>
</span
><a name="line-5"
></a
><a name="foo"
><a href="Identifiers.html#foo"
><span class="hs-identifier"
>foo</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>x</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>y</span
></a
></a
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><span class="hs-operator hs-var"
>+</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><span class="hs-operator hs-var"
>*</span
><span
> </span
><a href="Identifiers.html#bar"
><span class="hs-identifier hs-var"
>bar</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><span class="hs-operator hs-var"
>*</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
> </span
><span class="hs-operator hs-var"
>+</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
>
</span
><a name="line-6"
></a
><a name="bar"
><a href="Identifiers.html#bar"
><span class="hs-identifier"
>bar</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>x</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>y</span
></a
></a
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
> </span
><span class="hs-operator hs-var"
>+</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><span class="hs-glyph"
>-</span
><span
> </span
><a href="Identifiers.html#baz"
><span class="hs-identifier hs-var"
>baz</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
> </span
><span class="hs-glyph"
>-</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><span class="hs-operator hs-var"
>+</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
>
</span
><a name="line-7"
></a
><a name="baz"
><a href="Identifiers.html#baz"
><span class="hs-identifier"
>baz</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>x</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>y</span
></a
></a
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><span class="hs-operator hs-var"
>*</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
> </span
><span class="hs-operator hs-var"
>*</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
> </span
><span class="hs-operator hs-var"
>*</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
> </span
><span class="hs-operator hs-var"
>*</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
>
</span
><a name="line-8"
></a
><span
>
</span
><a name="line-9"
></a
><span class="hs-identifier"
>quux</span
><span
> </span
><span class="hs-glyph"
>::</span
><span
> </span
><span class="hs-identifier hs-type"
>Int</span
><span
> </span
><span class="hs-glyph"
>-></span
><span
> </span
><span class="hs-identifier hs-type"
>Int</span
><span
>
</span
><a name="line-10"
></a
><a name="quux"
><a href="Identifiers.html#quux"
><span class="hs-identifier"
>quux</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>x</span
></a
></a
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><a href="Identifiers.html#foo"
><span class="hs-identifier hs-var"
>foo</span
></a
><span
> </span
><span class="hs-special"
>(</span
><a href="Identifiers.html#bar"
><span class="hs-identifier hs-var"
>bar</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span class="hs-special"
>)</span
><span
> </span
><span class="hs-special"
>(</span
><a href="Identifiers.html#bar"
><span class="hs-identifier hs-var"
>bar</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span class="hs-special"
>)</span
><span
>
</span
><a name="line-11"
></a
><span
>
</span
><a name="line-12"
></a
><span class="hs-identifier"
>norf</span
><span
> </span
><span class="hs-glyph"
>::</span
><span
> </span
><span class="hs-identifier hs-type"
>Int</span
><span
> </span
><span class="hs-glyph"
>-></span
><span
> </span
><span class="hs-identifier hs-type"
>Int</span
><span
> </span
><span class="hs-glyph"
>-></span
><span
> </span
><span class="hs-identifier hs-type"
>Int</span
><span
> </span
><span class="hs-glyph"
>-></span
><span
> </span
><span class="hs-identifier hs-type"
>Int</span
><span
>
</span
><a name="line-13"
></a
><a name="norf"
><a href="Identifiers.html#norf"
><span class="hs-identifier"
>norf</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>x</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>y</span
></a
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>z</span
></a
></a
><span
>
</span
><a name="line-14"
></a
><span
> </span
><span class="hs-glyph"
>|</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><span class="hs-operator hs-var"
><</span
><span
> </span
><span class="hs-number"
>0</span
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><a href="Identifiers.html#quux"
><span class="hs-identifier hs-var"
>quux</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
>
</span
><a name="line-15"
></a
><span
> </span
><span class="hs-glyph"
>|</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
> </span
><span class="hs-operator hs-var"
><</span
><span
> </span
><span class="hs-number"
>0</span
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><a href="Identifiers.html#quux"
><span class="hs-identifier hs-var"
>quux</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
>
</span
><a name="line-16"
></a
><span
> </span
><span class="hs-glyph"
>|</span
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>z</span
></a
><span
> </span
><span class="hs-operator hs-var"
><</span
><span
> </span
><span class="hs-number"
>0</span
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><a href="Identifiers.html#quux"
><span class="hs-identifier hs-var"
>quux</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>z</span
></a
><span
>
</span
><a name="line-17"
></a
><span
> </span
><span class="hs-glyph"
>|</span
><span
> </span
><span class="hs-identifier hs-var"
>otherwise</span
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><a href="Identifiers.html#norf"
><span class="hs-identifier hs-var"
>norf</span
></a
><span
> </span
><span class="hs-special"
>(</span
><span class="hs-glyph"
>-</span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span class="hs-special"
>)</span
><span
> </span
><span class="hs-special"
>(</span
><span class="hs-glyph"
>-</span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span class="hs-special"
>)</span
><span
> </span
><span class="hs-special"
>(</span
><span class="hs-glyph"
>-</span
><a href="#"
><span class="hs-identifier hs-var"
>z</span
></a
><span class="hs-special"
>)</span
><span
>
</span
><a name="line-18"
></a
><span
>
</span
><a name="line-19"
></a
><span
>
</span
><a name="line-20"
></a
><span class="hs-identifier"
>main</span
><span
> </span
><span class="hs-glyph"
>::</span
><span
> </span
><span class="hs-identifier hs-type"
>IO</span
><span
> </span
><span class="hs-special"
>(</span
><span class="hs-special"
>)</span
><span
>
</span
><a name="line-21"
></a
><a name="main"
><a href="Identifiers.html#main"
><span class="hs-identifier"
>main</span
></a
></a
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><span class="hs-keyword"
>do</span
><span
>
</span
><a name="line-22"
></a
><span
> </span
><span class="hs-identifier hs-var"
>putStrLn</span
><span
> </span
><span class="hs-operator hs-var"
>.</span
><span
> </span
><span class="hs-identifier hs-var"
>show</span
><span
> </span
><span class="hs-operator hs-var"
>$</span
><span
> </span
><a href="Identifiers.html#foo"
><span class="hs-identifier hs-var"
>foo</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
>
</span
><a name="line-23"
></a
><span
> </span
><span class="hs-identifier hs-var"
>putStrLn</span
><span
> </span
><span class="hs-operator hs-var"
>.</span
><span
> </span
><span class="hs-identifier hs-var"
>show</span
><span
> </span
><span class="hs-operator hs-var"
>$</span
><span
> </span
><a href="Identifiers.html#quux"
><span class="hs-identifier hs-var"
>quux</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>z</span
></a
><span
>
</span
><a name="line-24"
></a
><span
> </span
><span class="hs-identifier hs-var"
>putStrLn</span
><span
> </span
><span class="hs-operator hs-var"
>.</span
><span
> </span
><span class="hs-identifier hs-var"
>show</span
><span
> </span
><span class="hs-operator hs-var"
>$</span
><span
> </span
><a href="Identifiers.html#norf"
><span class="hs-identifier hs-var"
>Identifiers</span
><span class="hs-operator hs-var"
>.</span
><span class="hs-identifier hs-var"
>norf</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>x</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>y</span
></a
><span
> </span
><a href="#"
><span class="hs-identifier hs-var"
>z</span
></a
><span
>
</span
><a name="line-25"
></a
><span
> </span
><span class="hs-keyword"
>where</span
><span
>
</span
><a name="line-26"
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>x</span
></a
></a
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><span class="hs-number"
>10</span
><span
>
</span
><a name="line-27"
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>y</span
></a
></a
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><span class="hs-number"
>20</span
><span
>
</span
><a name="line-28"
></a
><span
> </span
><a name=""
><a href="#"
><span class="hs-identifier"
>z</span
></a
></a
><span
> </span
><span class="hs-glyph"
>=</span
><span
> </span
><span class="hs-number"
>30</span
><span
>
</span
><a name="line-29"
></a
></pre
></body
></html
>
|