| 1 |
(* Copyright (C) 2009,2019 Matthew Fluet. |
| 2 |
* Copyright (C) 1999-2006 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 |
functor FixIntInf(PIntInf: sig include INT_INF end) : INT_INF = |
| 11 |
struct |
| 12 |
open PIntInf |
| 13 |
|
| 14 |
local |
| 15 |
(* SML/NJ uses lower instead of upper case. *) |
| 16 |
val toUpper = String.translate (Char.toString o Char.toUpper) |
| 17 |
in |
| 18 |
fun fmt r w = toUpper (PIntInf.fmt r w) |
| 19 |
end |
| 20 |
end |
| 21 |
|
| 22 |
structure IntInf = FixIntInf(struct open Pervasive.IntInf end) |
| 23 |
structure LargeInt: INTEGER = IntInf |