| 1 |
(* Copyright (C) 2013,2019,2022 Matthew Fluet. |
| 2 |
* Copyright (C) 1999-2007 Henry Cejtin, Matthew Fluet, Suresh |
| 3 |
* Jagannathan, and Stephen Weeks. |
| 4 |
* Copyright (C) 1997-2000 NEC Research Institute. |
| 5 |
* |
| 6 |
* MLton is released under a HPND-style license. |
| 7 |
* See the file MLton-LICENSE for details. |
| 8 |
*) |
| 9 |
|
| 10 |
signature MLTON_ROOT = |
| 11 |
sig |
| 12 |
val debug: bool |
| 13 |
(* Pointer equality. The usual caveats about lack of a well-defined |
| 14 |
* semantics. |
| 15 |
*) |
| 16 |
val eq: 'a * 'a -> bool |
| 17 |
(* Structural equality. Equivalent to SML's polymorphic |
| 18 |
* equality on equality types and a conservative approximation |
| 19 |
* of equivalence other types. |
| 20 |
*) |
| 21 |
val equal: 'a * 'a -> bool |
| 22 |
(* Structural hash. *) |
| 23 |
val hash: 'a -> Word32.word |
| 24 |
val isMLton: bool |
| 25 |
val safe: bool |
| 26 |
val share: 'a -> unit |
| 27 |
val shareAll: unit -> unit |
| 28 |
val size: 'a -> IntInf.int |
| 29 |
val sizeAll: unit -> IntInf.int |
| 30 |
end |