-
Notifications
You must be signed in to change notification settings - Fork 16
/
news.urs
27 lines (22 loc) · 923 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
(* Blog-style sequences of posted blurbs *)
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