caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Drup <drupyog+caml@zoho.com>
Cc: Andrea Giugliano <ag400@leicester.ac.uk>,
	caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Parse error with camlp4 while sources compile
Date: Wed, 13 Aug 2014 20:47:10 +0200	[thread overview]
Message-ID: <CAPFanBGtwuer7xggg9i+ONwH4ZhRw_MtbravOQmWxKJLLSgVhw@mail.gmail.com> (raw)
In-Reply-To: <53EBB027.9090009@zoho.com>

Indeed, the manual says that modtype-name may be any identifier, not
just a capitalized one:
  http://caml.inria.fr/pub/docs/manual-ocaml/names.html#modtype-name

I've never seen any source code using this, though.

On Wed, Aug 13, 2014 at 8:36 PM, Drup <drupyog+caml@zoho.com> wrote:
> Le 13/08/2014 18:28, Gabriel Scherer a écrit :
>
>> Module type names, as module names, must start with an uppercase
>> letter. Rename the signature into A or ASig, and you will be fine (for
>> this particular error).
>
> In this case, camlp4 is wrong (and in my experience, it's often wrong ..).
> Module type names can start with a lower case letter.
>
> # module type a = sig end ;;
> module type a = sig  end
>
> It's considered bad style, and is little know, since camlp4 get it wrong,
> but it works.
>

  reply	other threads:[~2014-08-13 18:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-13 15:30 Andrea Giugliano
2014-08-13 16:28 ` Gabriel Scherer
2014-08-13 18:36   ` Drup
2014-08-13 18:47     ` Gabriel Scherer [this message]
2014-08-13 22:43   ` Andrea Giugliano

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=CAPFanBGtwuer7xggg9i+ONwH4ZhRw_MtbravOQmWxKJLLSgVhw@mail.gmail.com \
    --to=gabriel.scherer@gmail.com \
    --cc=ag400@leicester.ac.uk \
    --cc=caml-list@inria.fr \
    --cc=drupyog+caml@zoho.com \
    /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).