From: Keiko Nakata <keiko@kurims.kyoto-u.ac.jp>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Pretty printing Toploop errors?
Date: Mon, 10 Jul 2006 19:06:23 +0900 (JST) [thread overview]
Message-ID: <20060710.190623.74192572.keiko@kurims.kyoto-u.ac.jp> (raw)
> 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!
Take a look at driver/errors.ml.
It may be useful.
Hope this helps,
Keiko.
next reply other threads:[~2006-07-10 10:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 10:06 Keiko Nakata [this message]
2006-07-11 13:16 ` Geoffrey Alan Washburn
2006-07-12 11:15 ` [Caml-list] " Jonathan Roewen
2006-07-12 11:53 ` Geoffrey Alan Washburn
2006-07-30 19:40 ` [Caml-list] " Brian Campbell
2006-08-01 14:36 ` Geoffrey Alan Washburn
-- strict thread matches above, loose matches on Subject: below --
2006-07-09 18:33 Geoffrey Alan Washburn
2006-07-10 10:54 ` [Caml-list] " Richard Jones
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=20060710.190623.74192572.keiko@kurims.kyoto-u.ac.jp \
--to=keiko@kurims.kyoto-u.ac.jp \
--cc=caml-list@inria.fr \
/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;
as well as URLs for NNTP newsgroup(s).