From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 77BF3BB84 for ; Sun, 9 Jul 2006 20:34:04 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k69IY3dB024859 for ; Sun, 9 Jul 2006 20:34:03 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA06410 for ; Sun, 9 Jul 2006 20:34:03 +0200 (MET DST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k69IY2UH024796 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 9 Jul 2006 20:34:02 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fze6B-0007Ag-H7 for caml-list@inria.fr; Sun, 09 Jul 2006 20:33:43 +0200 Received: from pool-141-158-244-188.phil.east.verizon.net ([141.158.244.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Jul 2006 20:33:43 +0200 Received: from geoffw by pool-141-158-244-188.phil.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Jul 2006 20:33:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Geoffrey Alan Washburn Subject: Pretty printing Toploop errors? Date: Sun, 09 Jul 2006 14:33:35 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pool-141-158-244-188.phil.east.verizon.net User-Agent: Thunderbird 1.5.0.4 (X11/20060516) Sender: news X-Miltered: at concorde with ID 44B14C1B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 44B14C1A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; upenn:01 toploop:01 toploop:01 pcaml:01 uncaught:01 typecore:01 compiler:01 exception:01 exception:01 compile:01 alan:01 hooks:03 cis:07 edu:08 useful:08 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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!