我在哪里可以找到OCaml选件模块? [英] Where can I find the OCaml Option module?

查看:127
本文介绍了我在哪里可以找到OCaml选件模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的意思是这个模块:选项

I mean this module : Option

我找不到它,打开Option 给我错误:Unbound module Option 和没有'option.cma'文件

I can't find it, open Option gives me Error: Unbound module Option and there is no 'option.cma' file

它是否在标准库中?它是否被命名为'option.cma'?

Is it in the standard library ? Is it named 'option.cma' ?

推荐答案

这不是OCaml标准库的一部分,它看起来可能是以前的一个名为Extlib的库的一部分。反过来,Extlib似乎已成为 OCaml Batteries Included 的一部分。选项模块现在被命名为 BatOption

This is not part of the OCaml standard library, no. It looks like it might be part of a former library named Extlib. Extlib, in turn, seems to have become part of OCaml Batteries Included. The Option module is now named BatOption.

如果您需要此模块,则应该包含OCaml电池。然后你需要告诉OCaml编译器如何找到这个库。这将在电池的安装说明中解释。

If you want this module, you should get OCaml Batteries Included. Then you need to tell the OCaml compiler how to find the library. It will be explained in the installation instructions for Batteries.

这篇关于我在哪里可以找到OCaml选件模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆