Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /tests/trunk/bugs/tests.obsolete/bug1114.2.sml
ViewVC logotype

Annotation of /tests/trunk/bugs/tests.obsolete/bug1114.2.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2460 - (view) (download)

1 : dbm 548 (* bug1114.2.sml *)
2 :    
3 :     functor TYPE () =
4 :     struct
5 :     datatype ty = Tyc of string
6 :     end;
7 :    
8 :     structure Type = TYPE();
9 :    
10 :     structure P =
11 :     struct
12 :    
13 :     fun pp_type ppstrm (Type.Tyc tyname) =
14 :     (Compiler.PrettyPrint.begin_block ppstrm Compiler.PrettyPrint.CONSISTENT 0;
15 :     Compiler.PrettyPrint.add_string ppstrm tyname;
16 :     Compiler.PrettyPrint.end_block ppstrm)
17 :    
18 :     end;
19 :    
20 :     val _ = Compiler.PPTable.install_pp ["Type","ty"] P.pp_type;
21 :    
22 :     val test_type = Type.Tyc "bool";

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0