codablank1
codablank1

Reputation: 6195

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' ?

Upvotes: 6

Views: 3620

Answers (1)

Jeffrey Scofield
Jeffrey Scofield

Reputation: 66823

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.

Upvotes: 9

Related Questions