diff options
author | 2008-09-13 20:04:28 -0400 | |
---|---|---|
committer | 2008-09-13 20:04:28 -0400 | |
commit | b145e03e5e25cfd59f544312efe3ea93e265a8ce (patch) | |
tree | 63178c623e47e45b58631910c533721505226647 /lib/top.urs | |
parent | 291fe704e9a5be0a71cd03418ec5229c99910898 (diff) |
Crud gets column headings
Diffstat (limited to 'lib/top.urs')
-rw-r--r-- | lib/top.urs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/top.urs b/lib/top.urs index b124caa2..8fb6e480 100644 --- a/lib/top.urs +++ b/lib/top.urs @@ -10,11 +10,21 @@ val compose : t1 ::: Type -> t2 ::: Type -> t3 ::: Type val txt : t ::: Type -> ctx ::: {Unit} -> use ::: {Type} -> show t -> t -> xml ctx use [] +val foldTR : tf :: (Type -> Type) -> tr :: ({Type} -> Type) + -> (nm :: Name -> t :: Type -> rest :: {Type} -> [nm] ~ rest + -> tf t -> tr rest -> tr ([nm = t] ++ rest)) + -> tr [] -> r :: {Type} -> $(mapTT tf r) -> tr r + val foldTR2 : tf1 :: (Type -> Type) -> tf2 :: (Type -> Type) -> tr :: ({Type} -> Type) -> (nm :: Name -> t :: Type -> rest :: {Type} -> [nm] ~ rest -> tf1 t -> tf2 t -> tr rest -> tr ([nm = t] ++ rest)) -> tr [] -> r :: {Type} -> $(mapTT tf1 r) -> $(mapTT tf2 r) -> tr r +val foldTRX : tf :: (Type -> Type) -> ctx :: {Unit} + -> (nm :: Name -> t :: Type -> rest :: {Type} -> [nm] ~ rest + -> tf t -> xml ctx [] []) + -> r :: {Type} -> $(mapTT tf r) -> xml ctx [] [] + val foldTRX2 : tf1 :: (Type -> Type) -> tf2 :: (Type -> Type) -> ctx :: {Unit} -> (nm :: Name -> t :: Type -> rest :: {Type} -> [nm] ~ rest -> tf1 t -> tf2 t -> xml ctx [] []) |