Questions tagged [ocaml-batteries]

OCaml Batteries included is a community-driven effort to standardize on a consistent, documented, and comprehensive development platform for the OCaml programming language. Use with [tag:ocaml] and optionally [tag:standard-library] if the question might be related to other standard-libraries, or the concept of standard libraries in general, as well

OCaml Batteries included (or simply "Batteries") is a community-driven effort to standardize on a consistent, documented, and comprehensive development platform for the programming language.

Useful resources

35 questions
0
votes
3 answers

How to prevent OCaml batteries from overriding values

The package Batteries.Num overrides the functions (+), (-), ... So the compiler gives an error on the following simple code open Batteries open Num let a = 4 + 4;; File "a.ml", line 3, characters 8-9: Error: This expression has type int but an…
cankosa
  • 43
  • 3
0
votes
2 answers

Don't understand symbols in OCaml

I'm learning OCaml these days by some basic material and a project written in OCaml. But I don't understand some symbols in OCaml. For example: open Batteries type char_token = [ | `Char of int | `Escape of char list ] what's…
KUN
  • 527
  • 4
  • 18
0
votes
2 answers

ocaml batteries compiling:ERROR: Leftover OCaml compilation files:

Build mode: shared ocamlbuild -no-links syntax.otarget byte.otarget src/batteries_help.cmo META shared.otarget Finished, 0 targets (0 cached) in 00:00:00. SANITIZE: a total of 3 files that should probably not be in your source tree has been found.…
Canoe
  • 347
  • 1
  • 3
  • 11
0
votes
1 answer

Unbound module Findlib error during installation of Ocaml Batteries

I have created my ~/.ocamlinit as follows let interactive = !Sys.interactive;; Sys.interactive := false;; (*Pretend to be in non-interactive mode*) #use "topfind";; Sys.interactive := interactive;; (*Return to regular interactive…
Animesh
  • 4,926
  • 14
  • 68
  • 110
-1
votes
1 answer

How to use functions in Ocaml Batteries?

I would like to use functions of module List of Ocaml Batteries. I have installed Batteries, and write code as follows: open Extlib ... Extlib.ExtList.List.remove ... While compiling, it gives me an error Error: Unbound module Extlib. Does anyone…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
1 2
3