caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Walter Cazzola <cazzola@dico.unimi.it>
To: OCaML Mailing List <caml-list@inria.fr>
Subject: [Caml-list] sig
Date: Fri, 7 Oct 2011 18:57:54 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.1110071855370.3251@surtur.dico.unimi.it> (raw)

Dear all,
sorry for being so dumb but I've still problems with types and the sig
syntax.

I'm trying to write a Graph ADT:

  module type GraphADT =
    sig
       type 'a graph
       val EmptyGraph : 'a graph

       val AddNode : 'a * 'a graph -> 'a graph
    end;;

but when I try to evaluate it I get:

   Syntax error: 'end' expected, the highlighted 'sig' might be unmatched

pointing to the row inbetween type and the first val but I don't
understand why and how to solve it.

Any help is welcome as always

TIA
Walter
-- 

             reply	other threads:[~2011-10-07 16:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07 16:57 Walter Cazzola [this message]
2011-10-07 17:00 ` Vincent Aravantinos
2011-10-09 14:18   ` Walter Cazzola
2011-10-07 20:46 ` Stefano Zacchiroli
2011-10-09 15:16   ` Walter Cazzola

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=alpine.LFD.2.00.1110071855370.3251@surtur.dico.unimi.it \
    --to=cazzola@dico.unimi.it \
    --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).