pigworker / SSGEP-DataData

being the materials for "Datatypes of Datatypes" at the Summer School on Generic and Effectful Programming, Oxford

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nat => ℕ

lemastero opened this issue · comments

In https://github.com/pigworker/SSGEP-DataData/blob/master/notes.pdf
(same in: https://www.cs.ox.ac.uk/projects/utgp/school/conor.pdf)

page 4 Nat should be

Agda is not very happy about:

data ℕ : Set where
  zero : ℕ
  suc : ℕ → ℕ
{-# BUILTIN NATURAL Nat #-}

but calms down, when receives:

data ℕ : Set where
  zero :     ℕ
  suc : ℕ -> ℕ
{-# BUILTIN NATURAL ℕ #-}

Lovely paper and with code! I thank, whatever gods may be, that you do not teach less well :)