caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alexey Egorov <alex.only.d@gmail.com>
To: caml users <caml-list@inria.fr>
Subject: [Caml-list] strange type error with -principal
Date: Fri, 18 Aug 2017 19:09:44 +0500	[thread overview]
Message-ID: <CAJannG6JRWv_BqTR_pDMLWhxmOYFtSHLWR7pOCU_G2j_qaPWHg@mail.gmail.com> (raw)

Hello,

I'm getting very confusing error when compiling with -principal:

> Error: This expression has type int op
>       but an expression was expected of type 'a
>       This instance of int is ambiguous:
>       it would escape the scope of its equation

What is the "instance of int"?

Here is the code - https://pastebin.com/T74haahx
I'm mostly confused by the fact that changing pattern from (op, idx)
to simple value binding eliminates this error.

Thanks!

             reply	other threads:[~2017-08-18 14:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-18 14:09 Alexey Egorov [this message]
2017-08-18 14:36 ` Gabriel Scherer
2017-08-18 15:23   ` Alexey Egorov
2017-08-18 15:33     ` Gabriel Scherer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJannG6JRWv_BqTR_pDMLWhxmOYFtSHLWR7pOCU_G2j_qaPWHg@mail.gmail.com \
    --to=alex.only.d@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).