From: Richard Jones <rich@annexia.org>
To: Geoffrey Alan Washburn <geoffw@cis.upenn.edu>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Pretty printing Toploop errors?
Date: Mon, 10 Jul 2006 11:54:17 +0100 [thread overview]
Message-ID: <20060710105417.GA1710@furbychan.cocan.org> (raw)
In-Reply-To: <e8ri60$608$1@sea.gmane.org>
On Sun, Jul 09, 2006 at 02:33:35PM -0400, Geoffrey Alan Washburn wrote:
> I'm trying to use Toploop within a program I'm working on and some
> code I'm feeding it is causing a type error. Unfortunately, the best I've
> been able to figure out is to use Toploop.print_exception_outcome or
> Pcaml.report_error which just tell me
>
>
> Uncaught exception: Typecore.Error (_, _)
>
>
> Are there any hooks for printing out a useful type error message? Or am
> I going to need to compile directly against the type-checking code from
> the compiler? Thanks!
Std.dump from Extlib will print whatever is inside the exception,
although it's not very pretty.
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
next prev parent reply other threads:[~2006-07-10 10:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-09 18:33 Geoffrey Alan Washburn
2006-07-10 10:54 ` Richard Jones [this message]
2006-07-10 10:06 [Caml-list] " Keiko Nakata
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=20060710105417.GA1710@furbychan.cocan.org \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
--cc=geoffw@cis.upenn.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