From: Yoann Padioleau <padiolea@irisa.fr>
To: Christian Stork <cstork@ics.uci.edu>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Printing values
Date: 15 Mar 2005 13:51:41 +0100 [thread overview]
Message-ID: <m38y4pjcma.fsf@ryxa.irisa.fr> (raw)
In-Reply-To: <20050315042519.GA26681@anthony.ics.uci.edu>
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. ____**
prev parent reply other threads:[~2005-03-15 12:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-15 4:25 Christian Stork
2005-03-15 9:26 ` [Caml-list] " Richard Jones
2005-03-15 12:51 ` Yoann Padioleau [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m38y4pjcma.fsf@ryxa.irisa.fr \
--to=padiolea@irisa.fr \
--cc=caml-list@inria.fr \
--cc=cstork@ics.uci.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox