这是一个简单的ocaml文件,目的是让我了解如何将使用电池库的程序加载到ocamltop中。 batteryassault.ml open Batteries
let main = print_string "hello, world ... powered on"
我编译这与 ocamlfind ocamlc -package batteries -linkpkg batteryassa
我想使用module List of Ocaml Batteries的功能。我已经安装了电池,并写出如下代码: open Extlib
...
Extlib.ExtList.List.remove ...
在编译时,它给了我一个错误Error: Unbound module Extlib。有谁知道会发生什么?
极力打造的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.out