-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnews.urs
30 lines (24 loc) · 948 Bytes
/
news.urs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(* Blog-style sequences of posted blurbs *)
style item
style header
datatype access =
Forbidden
| Read
| Post of {User : string, MayEdit : bool, MayDelete : bool}
| Admin of {User : string}
functor Make(M : sig
type title
type title_internal
type title_config
val title : Widget.t title title_internal title_config
val title_inj : sql_injectable title
type body
type body_internal
type body_config
val body : Widget.t body body_internal body_config
val body_inj : sql_injectable body
val access : transaction access
val onNewPost : {Title : title, Poster : string, Body : body}
-> transaction unit
(* Callback for every new post *)
end) : Ui.S0