caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Pretty printing Toploop errors?
@ 2006-07-09 18:33 Geoffrey Alan Washburn
  2006-07-10 10:54 ` [Caml-list] " Richard Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Geoffrey Alan Washburn @ 2006-07-09 18:33 UTC (permalink / raw)
  To: caml-list


	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!


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [Caml-list] Pretty printing Toploop errors?
@ 2006-07-10 10:06 Keiko Nakata
  2006-07-11 13:16 ` Geoffrey Alan Washburn
  0 siblings, 1 reply; 5+ messages in thread
From: Keiko Nakata @ 2006-07-10 10:06 UTC (permalink / raw)
  To: caml-list

>	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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-01 14:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-09 18:33 Pretty printing Toploop errors? Geoffrey Alan Washburn
2006-07-10 10:54 ` [Caml-list] " Richard Jones
2006-07-10 10:06 Keiko Nakata
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

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).