From bc260cdfa7b309820594b7caf14f62be8343358e Mon Sep 17 00:00:00 2001 From: Ohad Kammar Date: Sun, 7 Aug 2022 19:08:32 +0100 Subject: Switch to HTML only --- doc/Makefile | 10 +++++----- doc/Tutorial.html | 15 ++++++++++++--- doc/Tutorial.md | 46 ---------------------------------------------- doc/sources/Tutorial.md | 20 +++++++++++++++----- 4 files changed, 32 insertions(+), 59 deletions(-) delete mode 100644 doc/Tutorial.md (limited to 'doc') diff --git a/doc/Makefile b/doc/Makefile index f180bbf..ac7e6e3 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,13 +1,13 @@ -all: Tutorial.md +all: Tutorial.html -.PHONY: all ttms +.PHONY: ttms: pack build setoid-doc.ipkg -%.md: .PHONY - pack run katla markdown --config ./setoid-doc-style.dhall sources/$*.md ./build/ttc/$*.ttm > $*.md - pandoc $*.md -o $*.html +%.html: .PHONY + pack run katla markdown --config ./setoid-doc-style.dhall sources/$*.md ./build/ttc/$*.ttm \ + | pandoc -o $*.html install-deps: pack install-deps setoid-doc.ipkg diff --git a/doc/Tutorial.html b/doc/Tutorial.html index 5aacc5f..ae77959 100644 --- a/doc/Tutorial.html +++ b/doc/Tutorial.html @@ -34,6 +34,15 @@ background-color: whitesmoke; } -

Tutorial: setoids

-

A setoid is a type equipped with an equivalence relation

-

Example1 : Nat
Example1 = 0

+

Tutorial: Setoids

+

A setoid is a type equipped with an equivalence relation. Setoids come up when you need types with a better behaved equality relation, or when you want the equality relation to carry additional information. After completing this tutorial you will:

+
    +
  1. Know the user interface to the setoid package.
  2. +
  3. Know two different applications in which it can be used:
  4. +
+ +

Basic interface

+


diff --git a/doc/Tutorial.md b/doc/Tutorial.md deleted file mode 100644 index 8d9d9ff..0000000 --- a/doc/Tutorial.md +++ /dev/null @@ -1,46 +0,0 @@ - -# Tutorial: setoids -A _setoid_ is a type equipped with an equivalence relation - - - - -Example1 : Nat
-Example1 = 0
-
- diff --git a/doc/sources/Tutorial.md b/doc/sources/Tutorial.md index dc7dc71..f143d45 100644 --- a/doc/sources/Tutorial.md +++ b/doc/sources/Tutorial.md @@ -1,11 +1,21 @@ -# Tutorial: setoids -A _setoid_ is a type equipped with an equivalence relation - ```idris hide module Tutorial ``` +# Tutorial: Setoids + +A _setoid_ is a type equipped with an equivalence relation. Setoids come up when +you need types with a better behaved equality relation, or when you want the +equality relation to carry additional information. After completing this +tutorial you will: + +1. Know the user interface to the `setoid` package. +2. Know two different applications in which it can be used: + + constructing types with an equality relation that's better behaved than + Idris's built-in `Equal` type. + + types with an equality relation that carries additional information + +## Basic interface ```idris -Example1 : Nat -Example1 = 0 + ``` -- cgit v1.2.3