Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ml > Re: Can you get...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 7 Topic 929 of 973
Post > Topic >>

Re: Can you get sml-mode to highlight type mismatch terms?

by kennheinrich@[EMAIL PROTECTED] Oct 4, 2007 at 08:12 AM

On Oct 3, 5:57 am, dben...@[EMAIL PROTECTED]
 wrote:
> ...

> I am interested! Tell me in greater detail what you expect to be error-
> highlighted. (I think I follow but I want to be certain.)
>
> Why an 'error message parser'?

My thinking is this: I'd like to quickly see what I did wrong instead
of manually performing a term-by-term comparison on a pair of type
signatures.  I'd see three obvious solutions (though there are
certainly more):

1) make the compiler message more useful, pointing out the DECL_INFO
list vs DECL_INFO as the source of the problem immediately, then
showing the full mismatch message. I had assumed that this would be
difficult, although on reflection, it might not be. It would also be
compiler-specific.

2) integrate a full type error slicer with sml-mode. This seems very
difficult because you would have to make sure the slicer was fully
synchronized with the emacs comint shell and the state of the inferior
sml-process.

3) quickly hack up an emacs extension that (maybe on request, maybe
always) would parse the buffer for [tycon mismatch] error indications,
then do the same term-by term comparison (or more generally,
unification) that I do, then highlight the words "DECL_INFO list" and
"DECL_INFO" in the error message. Of course, showing me the problem in
the original source would be even better, but I think this implies
solution (2). Clearly, this is not a general solution and will not
necessarily provide useful feedback in all cases, but it seems like
the easiest way to get the most return for the effort.

Regards,

 - Kenn
 




 7 Posts in Topic:
Can you get sml-mode to highlight type mismatch terms?
kennheinrich@[EMAIL PROTE  2007-10-01 19:47:58 
Re: Can you get sml-mode to highlight type mismatch terms?
dbenson@[EMAIL PROTECTED]  2007-10-03 09:57:13 
Re: Can you get sml-mode to highlight type mismatch terms?
kennheinrich@[EMAIL PROTE  2007-10-04 08:12:54 
Re: Can you get sml-mode to highlight type mismatch terms?
dbenson@[EMAIL PROTECTED]  2007-10-15 23:04:07 
Re: Can you get sml-mode to highlight type mismatch terms?
Vesa Karvonen <vesa.ka  2007-10-15 23:05:03 
Re: Can you get sml-mode to highlight type mismatch terms?
Stefan Monnier <monnie  2007-10-17 17:26:34 
Re: Can you get sml-mode to highlight type mismatch terms?
Vesa Karvonen <vesa.ka  2007-10-18 16:50:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 11:03:47 CDT 2008.