Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] toplevel printing of polymorphic values
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jeff Henrikson <jehenrik@y...>
Subject: [Caml-list] toplevel printing of polymorphic values


I have written a double ended queue and I would like to install a pretty printer in the toplevel.  Just being able to print an 'a Dequeue.t like an 'a list would be fine.

I understand how to use the Format module to get the box, print the delimeters, etc.  The part I don't understand is how to get back to the generic 'a printer.  I cannot see any polypmorphic methods in all of the Format module.  What I want to access seems to be implemented in:


    (* The main printing function *)

    let outval_of_value max_steps max_depth check_depth env obj ty =

Though if it is exposed, I'm sure it is in some other form.  Is what I'm trying to do possible?

Jeff Henrikson

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: