projects
/
cubicaltt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c77a02
)
Make list compile
author
Anders Mörtberg
<mortberg@chalmers.se>
Tue, 14 Apr 2015 21:04:00 +0000
(23:04 +0200)
committer
Anders Mörtberg
<mortberg@chalmers.se>
Tue, 14 Apr 2015 21:04:00 +0000
(23:04 +0200)
examples/list.ctt
patch
|
blob
|
blame
|
history
diff --git
a/examples/list.ctt
b/examples/list.ctt
index 1073d10c9ffce58f4e1bc3e00898ecc20b09be51..64584a40e5d03327178b1070946055165dc46d6e 100644
(file)
--- a/
examples/list.ctt
+++ b/
examples/list.ctt
@@
-1,9
+1,11
@@
module list where
+import prelude
+
data list (A : U) = nil | cons (a : A) (as : list A)
append (A : U) : list A -> list A -> list A = split
- nil -> id (list A)
+ nil -> id
fun
(list A)
cons x xs -> \(ys : list A) -> cons x (append A xs ys)
reverse (A : U) : list A -> list A = split