author | wenzelm |
Wed, 23 May 2012 13:32:29 +0200 | |
changeset 47959 | dba9409a3a5b |
parent 43761 | e72ba84ae58f |
child 47986 | ca7104aebb74 |
permissions | -rw-r--r-- |
38327 | 1 |
(* Title: Pure/ML/install_pp_polyml.ML |
2 |
Author: Makarius |
|
28557
6a661aeff564
extra Poly/ML toplevel pretty printing in ML-Systems/install_pp_polyml.ML;
wenzelm
parents:
diff
changeset
|
3 |
|
6a661aeff564
extra Poly/ML toplevel pretty printing in ML-Systems/install_pp_polyml.ML;
wenzelm
parents:
diff
changeset
|
4 |
Extra toplevel pretty-printing for Poly/ML. |
6a661aeff564
extra Poly/ML toplevel pretty printing in ML-Systems/install_pp_polyml.ML;
wenzelm
parents:
diff
changeset
|
5 |
*) |
6a661aeff564
extra Poly/ML toplevel pretty printing in ML-Systems/install_pp_polyml.ML;
wenzelm
parents:
diff
changeset
|
6 |
|
31314 | 7 |
PolyML.install_pp |
8 |
(fn (str, _, _, _) => fn depth => fn (print: 'a * int -> unit) => fn (x: 'a future) => |
|
9 |
(case Future.peek x of |
|
10 |
NONE => str "<future>" |
|
11 |
| SOME (Exn.Exn _) => str "<failed>" |
|
43761
e72ba84ae58f
tuned signature -- corresponding to Scala version;
wenzelm
parents:
38327
diff
changeset
|
12 |
| SOME (Exn.Res y) => print (y, depth))); |
28557
6a661aeff564
extra Poly/ML toplevel pretty printing in ML-Systems/install_pp_polyml.ML;
wenzelm
parents:
diff
changeset
|
13 |
|
31314 | 14 |
PolyML.install_pp |
15 |
(fn (str, _, _, _) => fn depth => fn (print: 'a * int -> unit) => fn (x: 'a lazy) => |
|
16 |
(case Lazy.peek x of |
|
17 |
NONE => str "<lazy>" |
|
18 |
| SOME (Exn.Exn _) => str "<failed>" |
|
43761
e72ba84ae58f
tuned signature -- corresponding to Scala version;
wenzelm
parents:
38327
diff
changeset
|
19 |
| SOME (Exn.Res y) => print (y, depth))); |
28672 | 20 |