File: extLib.ml

package info (click to toggle)
extlib 1.7.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 632 kB
  • sloc: ml: 6,980; makefile: 128; sh: 42; ansic: 31
file content (46 lines) | stat: -rw-r--r-- 1,601 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
(* 
 * ExtLib - use extensions as separate modules
 * Copyright (C) 2003 Nicolas Cannasse
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version,
 * with the special exception on linking described in file LICENSE.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *)

(* 
  Note:
  
  Since ExtLib is provided for namespace convenience for
  users who wants to keep the usage of the original
  Ocaml Standard Library, no MLI CMI nor documentation will
  be provided for this module.

  Users can simply do an "open ExtLib" to import all Ext*
  namespaces instead of doing "open ExtList" for example.

  The trade-off is that they'll have to link all the modules
  included below so the resulting binary is bigger.
*)

module List = ExtList.List
module String = ExtString.String
module Hashtbl = ExtHashtbl.Hashtbl
module Array = ExtArray.Array
module Buffer = ExtBuffer.Buffer

exception Invalid_string = ExtString.Invalid_string

let (@) = ExtList.(@)

include Std