From: Michael Jones <Michael.Jones@cl.cam.ac.uk>
To: caml-list@pauillac.inria.fr
Subject: Perplexing type error.
Date: Wed, 12 Jun 1996 11:31:25 +0200 [thread overview]
Message-ID: <E0uTnCw-00060C-00@heaton.cl.cam.ac.uk> (raw)
Tres petit(e) abstract en Francais:
Il y a une "type error" que je ne comprende pas.
While tweaking a preterm parser for type expressions in a proof assistant
written in caml, I came across the following perplexing type error. At first,
it looked like a type inference problem so I specified the types in the
generic function definitions and got a new error:
#Toplevel input:
> and parse_pretypepred src = P_APPLY Pred (parse_preterm) src
> ^^^^^^^^^^^^^
This expression has type lexcode list -> preterm * lexcode list,
but is used with type lexcode list -> preterm * lexcode list.
# _
So. Any ideas why this is an error and how I can fix it? I'm stumped. The
line with the error in it is part of a larger mutualy recursive function. I
am using caml-light-0.71 on a sun workstation and didn't see anything similar
in the known bugs file.
Some more detail about the line of code: P_APPLY is a parser combinater that
takes a function (Pred in this case) and applies it to the parser result.
Pred is a type constructor for making pretypes out of preterms. parse_preterm
is the parser and src is the output of the lex. analyzer.
regards,
mike.
next reply other threads:[~1996-06-12 18:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-12 9:31 Michael Jones [this message]
1996-06-12 18:42 ` Pierre Weis
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=E0uTnCw-00060C-00@heaton.cl.cam.ac.uk \
--to=michael.jones@cl.cam.ac.uk \
--cc=caml-list@pauillac.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