diff options
Diffstat (limited to 'doc/Tutorial.html')
-rw-r--r-- | doc/Tutorial.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/Tutorial.html b/doc/Tutorial.html new file mode 100644 index 0000000..5aacc5f --- /dev/null +++ b/doc/Tutorial.html @@ -0,0 +1,39 @@ +<style> +.IdrisData { + color: darkred +} +.IdrisType { + color: blue +} +.IdrisBound { + color: black +} +.IdrisFunction { + color: darkgreen +} +.IdrisKeyword { + font-weight: bold; +} +.IdrisComment { + color: #b22222 +} +.IdrisNamespace { + font-style: italic; + color: black +} +.IdrisPostulate { + font-weight: bold; + color: red +} +.IdrisModule { + font-style: italic; + color: black +} +.IdrisCode { + display: block; + background-color: whitesmoke; +} +</style> +<h1 id="tutorial-setoids">Tutorial: setoids</h1> +<p>A <em>setoid</em> is a type equipped with an equivalence relation</p> +<p><code class="IdrisCode"> <span class="IdrisFunction">Example1</span> <span class="IdrisKeyword">:</span> <span class="IdrisType">Nat</span><br /> <span class="IdrisFunction">Example1</span> <span class="IdrisKeyword">=</span> <span class="IdrisData">0</span><br /> </code></p> |