Skip to content

Commit

Permalink
Add more kind annotations, following new Ur/Web wildcard restriction …
Browse files Browse the repository at this point in the history
…for signatures
  • Loading branch information
achlipala committed Sep 20, 2019
1 parent 8052f1a commit 44b4f91
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion calendar.urs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ functor FromTable(M : sig
val kinds : $(mapU string times)
val sh : show $(map fst3 key)
end) : sig
con private
con private :: (Type * Type * Type)
con tag = M.tag
val cal : t (map fst3 M.key) [tag = private]
end
Expand Down
2 changes: 1 addition & 1 deletion sql.urs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ val easy_select : fs ::: {Type}
-> qtablename :: Name
-> sql_table fs ks
-> sql_exp [qtablename = fs] [] [] bool
-> sql_order_by [qtablename = _] []
-> sql_order_by [qtablename = fs] []
-> sql_query [] [] [qtablename = fs] []

(* Easy table insert with constants *)
Expand Down
12 changes: 6 additions & 6 deletions todo.urs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ functor WithDueDate(M : sig
val allowAnyUser : bool
(* Only one user, not necessarily this one, needs to have done the task. *)
end) : sig
con private
type private
con tag = M.tag
val todo : t M.key [tag = private]
end
Expand Down Expand Up @@ -87,7 +87,7 @@ functor WithForeignDueDate(M : sig
val title : string
val render : $(key ++ subkey) -> string (* username *) -> xbody
end) : sig
con private
type private
con tag = M.tag
val todo : t (M.key ++ M.subkey) [tag = private]
end
Expand Down Expand Up @@ -120,7 +120,7 @@ functor WithCompletionFlag(M : sig
val title : string
val render : $(key ++ subkey) -> string (* username *) -> xbody
end) : sig
con private
type private
con tag = M.tag
val todo : t (M.key ++ M.subkey) [tag = private]
end
Expand Down Expand Up @@ -154,7 +154,7 @@ functor WithCompletionFlagAndDueDate(M : sig
val title : string
val render : $(key ++ subkey) -> string (* username *) -> xbody
end) : sig
con private
type private
con tag = M.tag
val todo : t (M.key ++ M.subkey) [tag = private]
end
Expand Down Expand Up @@ -184,7 +184,7 @@ functor Happenings(M : sig
val title : string
val render : $key -> xbody
end) : sig
con private
type private
con tag = M.tag
val todo : t M.key [tag = private]
end
Expand Down Expand Up @@ -227,7 +227,7 @@ functor Grading(M : sig
val title : string
val render : $([guser = string] ++ akey) -> string (* username *) -> xbody
end) : sig
con private
type private
con tag = M.tag
con guser = M.guser
val todo : t ([guser = string] ++ M.akey) [tag = private]
Expand Down
2 changes: 1 addition & 1 deletion ui.urs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type context

(* A general type of GUI units, which can be composed and dropped into pages.
* The parameter is the unit's state, which should be generated on the server. *)
type t a = {
type t (a :: Type) = {
Create : transaction a,
Onload : a -> transaction unit,
Render : context -> a -> xbody
Expand Down

0 comments on commit 44b4f91

Please sign in to comment.