You may have a type annotation with tuareg mode. If I have this ~ / .emacs file:
(add-hook 'tuareg-mode-hook '(lambda () (define-key tuareg-mode-map [f10] 'caml-types-show-type); requires caml-types )) (add-to-list 'auto-mode-alist '("\\.ml\\w?" . tuareg-mode)) (autoload 'caml-types-show-type "caml-types" "Show the type of expression or pattern at point." t)
then pressing F10 shows the type of expression under the dot. As you know, you need to compile foo.ml file with
ocamlc -annot foo.ml
so there is a foo.annot file in the same directory as foo.ml
jrouquie
source share