From: Joel Reymont <joelr1@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: camlp4: Curried constructor error
Date: Mon, 2 Apr 2007 14:20:04 +0100 [thread overview]
Message-ID: <ED3FDC2C-9C51-4A9F-8E06-D07BDFE6A356@gmail.com> (raw)
Folks,
I have a the following function and invocation:
let render = <:octalfile<templ.html>>
print_endline (Xml.to_string_fmt (Templ.render ~page ~visitor));;
I thought I would make render take an argument so I first tried
let render x = <:octalfile< x >>
print_endline (Xml.to_string_fmt (Templ.render "templ.html" ~page
~visitor));;
File "main.ml", line 31, characters 34-46:
This function is applied to too many arguments,
maybe you forgot a `;'
I thought I would make render take a couple more arguments
let render x y z = <:octalfile< x >> y z
but this complains
File "ghost-location", line 1, characters 0-0:
Parse error: currified constructor
What's the proper way to make render take a file name?
Thanks, Joel
--
http://wagerlabs.com/
next reply other threads:[~2007-04-02 13:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-02 13:20 Joel Reymont [this message]
2007-04-02 13:26 ` Joel Reymont
2007-04-02 17:08 ` [Caml-list] " Nicolas Pouillard
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=ED3FDC2C-9C51-4A9F-8E06-D07BDFE6A356@gmail.com \
--to=joelr1@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