ocaml - 编译 ocaml-websocket 失败

标签 ocaml ocaml-batteries ocsigen ocaml-lwt

尝试构建 ocaml-websocket,它失败了:

File "lib/websocket.ml", line 202, characters 29-42:
Error: The function applied to this argument has type
         ?buffer_size:int ->
         (Lwt_io.input_channel * Lwt_io.output_channel) Lwt.t
This argument cannot be applied with label ~setup_socket

有问题的功能线是,

lwt ic, oc = Lwt_io.open_connection ~setup_socket sockaddr in

知道 lwt API 在以前的版本中是否发生了变化吗?

最佳答案

我使用了 Lwt 的定制版本,这就是原因。我将很快发布与普通 Lwt 兼容的新版本。

关于ocaml - 编译 ocaml-websocket 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15368477/

相关文章:

recursion - OCaml 显式多态类型注释

module - Cygwin 和 OCaml : OPAM + Batteries

ocaml - Ocsigen/Eliom : How to remove unnecessary JavaScript?

ocaml - 由于故障 : ("That function cannot be called here because it needs information about the request or the site."),无法启动 ocsigen 服务器

ocaml - 链表 OCaml

algorithm - 斐波那契 OCAML 的 N 步代码

performance - 折叠优化

ocaml电池编译: Unbound module Toploop

ocaml - 如何使某些东西支持 lwt?