annotate tests/impl.ur @ 1905:cd1cfecc8c72
Remove autogenerated config.h.in from version control
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
---
.hgignore | 1 +
include/urweb/config.h.in | 104 ----------------------------------------------
2 files changed, 1 insertion(+), 104 deletions(-)
delete mode 100644 include/urweb/config.h.in
author |
Anders Kaseorg <andersk@mit.edu> |
date |
Fri, 22 Nov 2013 09:36:14 -0500 |
parents |
8d3aa6c7cee0 |
children |
|
rev |
line source |
adamc@1093
|
1 fun id [t :: Type] (x : t) = x
|
adamc@15
|
2 val id_self = id [t :: Type -> t -> t] id
|
adamc@15
|
3
|
adamc@1093
|
4 fun idi [t ::: Type] (x : t) = x
|
adamc@1093
|
5 val idi_self = idi @@idi
|
adamc@17
|
6
|
adamc@1093
|
7 fun picker [na :: Name] [a ::: Type] [nb :: Name] [b ::: Type] [fs ::: {Type}] [[na] ~ [nb]] [[na, nb] ~ fs]
|
adamc@1093
|
8 (r : $([na = a, nb = b] ++ fs)) = {na = r.na, nb = r.nb}
|
adamc@17
|
9 val getem = picker [#A] [#C] {A = 0, B = 1.0, C = "hi", D = {}}
|
adamc@18
|
10 val getem2 = picker [#A] [_] {A = 0, B = 1.0, C = "hi", D = {}}
|
adamc@18
|
11 val getem3 = picker [#A] [_::Name] {A = 0, B = 1.0, C = "hi", D = {}}
|
adamc@17
|
12
|
adamc@1093
|
13 fun picker_ohmy [na ::: Name] [a ::: Type] [nb ::: Name] [b ::: Type] [fs ::: {Type}] [[na] ~ [nb]] [[na, nb] ~ fs]
|
adamc@1093
|
14 (r : $([na = a, nb = b] ++ fs)) = {na = r.na, nb = r.nb}
|
adamc@17
|
15 val getem_ohmy = picker_ohmy {A = 0, B = 1.0, C = "hi", D = {}}
|
adamc@1093
|
16
|
adamc@1093
|
17 fun proj [fs] [t] [nm :: Name] [[nm] ~ fs] (r : $([nm = t] ++ fs)) = r.nm
|
adamc@1093
|
18 val one = proj [#A] {A = 1, B = True}
|