English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Pretty printing Toploop errors?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-07-09 (18:34)
From: Geoffrey Alan Washburn <geoffw@c...>
Subject: Pretty printing Toploop errors?

	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!