package lascar

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file builtins.ml

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
(**********************************************************************)
(*                                                                    *)
(*                              LASCAr                                *)
(*                                                                    *)
(*  Copyright (c) 2017-present, Jocelyn SEROT.  All rights reserved.  *)
(*                                                                    *)
(*  This source code is licensed under the license found in the       *)
(*  LICENSE file in the root directory of this source tree.           *)
(*                                                                    *)
(**********************************************************************)

(** Pre-defined functor arguments *)

module Int = struct
  type t = int 
  let compare = Pervasives.compare
  let to_string = string_of_int
end

module String = struct
  type t = string
  let compare = Pervasives.compare
  let to_string x = x
end

module Bool = struct
  type t = bool
  let compare = Pervasives.compare
  let to_string = string_of_bool
end
OCaml

Innovation. Community. Security.