ocsigen / tutorial-deprecated

Deprecated. Please use repository tuto instead.
http://ocsigen.org/tuto/manual/
10 stars 17 forks source link

tutoreact: Forum_notif.notify doesn't take a function as argument but a Forum_notif.server_notif #67

Open adrien-n opened 7 years ago

adrien-n commented 7 years ago

The compiler complains about the second argument to notify in the following line:

Forum_notif.notify forumid (fun userid -> Lwt.return (Some id));

The message is:

This expression should not be a function, the expected type is Forum_notif.server_notif

I'm not sure what the fix should be.