Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find the OCaml Option module?

I mean this module : Option

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

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

like image 365
codablank1 Avatar asked Mar 28 '12 19:03

codablank1


1 Answers

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.

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.

like image 184
Jeffrey Scofield Avatar answered Oct 15 '22 08:10

Jeffrey Scofield