Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutoreact: Ocsipersist.open_table returns an lwt value #65

Open
adrien-n opened this issue Apr 2, 2017 · 1 comment
Open

tutoreact: Ocsipersist.open_table returns an lwt value #65

adrien-n opened this issue Apr 2, 2017 · 1 comment

Comments

@adrien-n
Copy link
Contributor

adrien-n commented Apr 2, 2017

In src/tutoreact.wiki, there is the following code:

let db = Ocsipersist.open_table "messages"
[...]
let get_message id = Ocsipersist.find db (string_of_int id)
[...]
let add_message v =
[...]
let%lwt () = Ocsipersist.add db (string_of_int index) v in

However Ocsipersist.open_table returns a value of type 'a Ocsipersist.table Lwt.t while Ocsipersist.find's and Ocsipersist.add's first argument must be of type 'b Ocsipersist.table .

@vasilisp
Copy link
Contributor

vasilisp commented Apr 2, 2017

The signature of open_table has changed quite recently and the doc is out-of-date. Fixes welcome :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants