Version française
Home     About     Download     Resources     Contact us    
Browse thread
Printing values
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yoann Padioleau <padiolea@i...>
Subject: Re: [Caml-list] Printing values
Christian Stork <cstork@ics.uci.edu> writes:

> This must be a dumb question, but I couldn't find an answer.
> 
> How can I print values of my own data types in the default way, eg, as
> the debugger or the toplevel does it?  Is there a standard formatter
> that I can use (or generate), or do I have to write a new formatter for
> each data type? 

you can try this:
 http://www.irisa.fr/prive/padiolea/hacks/generic_print.ml

or this (better): 
 http://www.seedwiki.com/wiki/shifting_focus/tywith


> 
> Thanks,
> Chris

-- 
Yoann  Padioleau,  INSA de Rennes, France   www.irisa.fr/prive/padiolea/
Opinions expressed here are only mine. Je n'écris qu'à titre personnel.
**____   Get Free. Be Smart.  Simply use Linux and Free Software.   ____**