ocaml type incompatble error message

Komtanoo Pinpimai <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <CACitgfE+1s3Z9RoTVHjSmcbbG-uJqqztfmOW75gLffko=NEiuA@mail.gmail.com>
when I see:

Error: This expression has type XXX
       but an expression was expected of type YYY


is it possible to display that "an expression" along with the error
message? because sometimes it's not so obvious to figure out.

-- 
In accordance with U.S. Treasury regulations, if this message contains
advice concerning one or more Federal tax issues, it is not a formal
legal opinion and may not be used by any person for the avoidance of
Federal tax penalties.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.