Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] Numbered modules in error messages
@ 2012-06-06 10:04 Dawid Toton
  2012-06-06 16:23 ` Jacques Garrigue
  0 siblings, 1 reply; 3+ messages in thread
From: Dawid Toton @ 2012-06-06 10:04 UTC (permalink / raw)
  To: caml-list

Is it possible to make use of the numbers the compiler shows in the message below? What triggers this formatting?

Error: This expression has type O/3119.dexpr = O/3119.decor * O/3119.expr
        but an expression was expected of type
          O/1730.dexpr = O/1730.decor * O/1730.expr
        Type O/3119.decor = O/3119.decor_fst * Static.t
        is not compatible with type O/1730.decor = O/1730.decor_fst * Static.t
        Type O/3119.decor_fst = Keep_defs.P.O.decor_fst
        is not compatible with type O/1730.decor_fst = Indirloc.t

I'm asking this, because from time to time I deal with error messages like "type abc is not compatible with abc" with both abc being exactly the same strings. I'm wondering whether it is possible to force the compiler to say something more, to explain the difference between these types.

Dawid

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-12 14:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-06 10:04 [Caml-list] Numbered modules in error messages Dawid Toton
2012-06-06 16:23 ` Jacques Garrigue
2012-06-12 14:40   ` [Caml-list] " Dawid Toton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox